From 036948e00c9a91a91a4cdfb91c3a2cb1cccde456 Mon Sep 17 00:00:00 2001 From: Elena Makarova Date: Fri, 22 Nov 2024 14:44:05 +0300 Subject: [PATCH] fix: show zero default for column --- src/containers/Tenant/Schema/SchemaViewer/prepareData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/Tenant/Schema/SchemaViewer/prepareData.ts b/src/containers/Tenant/Schema/SchemaViewer/prepareData.ts index 609e03bc3..aea8fcd4f 100644 --- a/src/containers/Tenant/Schema/SchemaViewer/prepareData.ts +++ b/src/containers/Tenant/Schema/SchemaViewer/prepareData.ts @@ -64,7 +64,7 @@ function prepareRowTableSchema(data: TTableDescription = {}): SchemaData[] { type: Type, notNull: NotNull, autoIncrement: Boolean(DefaultFromSequence), - defaultValue: Object.values(DefaultFromLiteral?.value || {})[0] || '-', + defaultValue: Object.values(DefaultFromLiteral?.value || {})[0] ?? '-', familyName, prefferedPoolKind, columnCodec,