From 66761a69d32cc4f787c5d13b075c9aeebb745b51 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 25 Jun 2025 12:10:08 +0300 Subject: [PATCH] refactor(book/table): clean up --- apps/client/src/widgets/view_widgets/table_view/data.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 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 03f6d7fd4..046cef52b 100644 --- a/apps/client/src/widgets/view_widgets/table_view/data.ts +++ b/apps/client/src/widgets/view_widgets/table_view/data.ts @@ -16,7 +16,7 @@ type GridLabelType = 'text' | 'number' | 'boolean' | 'date' | 'dateString' | 'ob export function buildData(parentNote: FNote, notes: FNote[]) { const info = getPromotedAttributeInformation(parentNote); - const columnDefs = buildColumnDefinitions(parentNote, info); + const columnDefs = buildColumnDefinitions(info); const rowData = buildRowDefinitions(notes, info); return { @@ -25,7 +25,7 @@ export function buildData(parentNote: FNote, notes: FNote[]) { } } -export function buildColumnDefinitions(parentNote: FNote, info: PromotedAttributeInformation[]) { +export function buildColumnDefinitions(info: PromotedAttributeInformation[]) { const columnDefs: GridOptions["columnDefs"] = [ { field: "title" @@ -46,7 +46,6 @@ export function buildColumnDefinitions(parentNote: FNote, info: PromotedAttribut function getPromotedAttributeInformation(parentNote: FNote) { const info: PromotedAttributeInformation[] = []; for (const promotedAttribute of parentNote.getPromotedDefinitionAttributes()) { - console.log(promotedAttribute); if (promotedAttribute.type !== "label") { console.warn("Relations are not supported for now"); continue;