From fb32d264795ddddcb1de66cbfbb3a11975ca9c47 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 25 Jun 2025 12:05:10 +0300 Subject: [PATCH] feat(book/table): support boolean type --- apps/client/src/widgets/view_widgets/table_view/data.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/view_widgets/table_view/data.ts b/apps/client/src/widgets/view_widgets/table_view/data.ts index c08455e2b..03f6d7fd4 100644 --- a/apps/client/src/widgets/view_widgets/table_view/data.ts +++ b/apps/client/src/widgets/view_widgets/table_view/data.ts @@ -92,8 +92,12 @@ export function buildRowDefinitions(notes: FNote[], infos: PromotedAttributeInfo title: note.title }; - for (const info of infos) { - data[info.name] = note.getLabelValue(info.name); + for (const { name, type } of infos) { + if (type === "boolean") { + data[name] = note.hasLabel(name); + } else { + data[name] = note.getLabelValue(name); + } } definitions.push(data);