From 071d05335b7bdcca5593ee11b4d1bb713ef9d5b4 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 25 Apr 2024 18:33:58 -0400 Subject: fixed issue with dataviz table disappearing --- src/client/views/nodes/DataVizBox/DataVizBox.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/client/views/nodes/DataVizBox/DataVizBox.tsx b/src/client/views/nodes/DataVizBox/DataVizBox.tsx index 5b1f471d8..113a857c3 100644 --- a/src/client/views/nodes/DataVizBox/DataVizBox.tsx +++ b/src/client/views/nodes/DataVizBox/DataVizBox.tsx @@ -273,6 +273,7 @@ export class DataVizBox extends ViewBoxAnnotatableComponent() im () => { if (this.layoutDoc.dataViz_schemaLive === undefined) this.layoutDoc.dataViz_schemaLive = true; const getFrom = DocCast(this.layoutDoc.dataViz_asSchema); + if (!getFrom?.schema_columnKeys) return undefined; const keys = StrListCast(getFrom?.schema_columnKeys).filter(key => key !== 'text'); const children = DocListCast(getFrom?.[Doc.LayoutFieldKey(getFrom)]); const current: { [key: string]: string }[] = []; -- cgit v1.2.3-70-g09d2