From 73d8868ccf414a8d8e9bda7e6919bef7e5a6754f Mon Sep 17 00:00:00 2001 From: hoshinotsuyoshi Date: Thu, 5 Dec 2024 16:09:23 +0900 Subject: [PATCH] Display the block even if `column.default` is JS falsy value (for example, 0.) --- .../TableNode/TableDetail/Columns/ColumnsItem/ColumnsItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableDetail/Columns/ColumnsItem/ColumnsItem.tsx b/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableDetail/Columns/ColumnsItem/ColumnsItem.tsx index 8037c112..21d9ec44 100644 --- a/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableDetail/Columns/ColumnsItem/ColumnsItem.tsx +++ b/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableDetail/Columns/ColumnsItem/ColumnsItem.tsx @@ -18,7 +18,7 @@ export const ColumnsItem: FC = ({ column }) => {
Type
{column.type}
- {column.default && ( + {column.default !== null && (
Default
{column.default}