From 3be5e57998e3aa706647ff4fc82bc8e41ff50fcc Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 14 May 2024 14:55:09 +0200 Subject: [PATCH] debug cell attachments --- ui/src/AboutDialog.svelte | 1 - ui/src/CellEdit.svelte | 2 +- ui/src/SummaryRow.svelte | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/src/AboutDialog.svelte b/ui/src/AboutDialog.svelte index 40d5982..4a8a2e5 100644 --- a/ui/src/AboutDialog.svelte +++ b/ui/src/AboutDialog.svelte @@ -72,7 +72,6 @@ for (let j = 0; j < csv.data[i].length; j++) { let cellData = {attachments:[], value: csv.data[i][j]}; row.cells[boardState.columnDefs[j].id] = cellData; - console.log("added", boardState.columnDefs[j].id, row.cells[boardState.columnDefs[j]]); } boardState.rows.push(row) diff --git a/ui/src/CellEdit.svelte b/ui/src/CellEdit.svelte index 4abab45..5e21e76 100644 --- a/ui/src/CellEdit.svelte +++ b/ui/src/CellEdit.svelte @@ -39,7 +39,7 @@ let closing = "" let label = ""; $: filteredSuggestions = [ - ...new Set(allColumnValues.filter(value => value !== undefined && value.includes(label))), + ...new Set(allColumnValues.filter(value => value !== undefined && value?.includes(label))), ...(label !== "" ? [label] : []) ]; $: label; diff --git a/ui/src/SummaryRow.svelte b/ui/src/SummaryRow.svelte index 8aa4178..a8ac151 100644 --- a/ui/src/SummaryRow.svelte +++ b/ui/src/SummaryRow.svelte @@ -217,7 +217,7 @@ - {:else if [ColumnType.String, ColumnType.Date, ColumnType.Email, ColumnType.WeaveAsset, ColumnType.TableLink, ColumnType.Label].includes(def.type)} + {:else if [ColumnType.String, ColumnType.Date, ColumnType.Email, ColumnType.WeaveAsset, ColumnType.TableLink, ColumnType.Label, ColumnType.WALEmbed].includes(def.type)}