aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-04-25 18:33:58 -0400
committerbobzel <zzzman@gmail.com>2024-04-25 18:33:58 -0400
commit071d05335b7bdcca5593ee11b4d1bb713ef9d5b4 (patch)
treee3ce3b6b95edad13b5b86b18a46c173df5a3f7a5
parent08334824ad07dea1d0bb56d8ef91e3ad1a4573b0 (diff)
fixed issue with dataviz table disappearing
-rw-r--r--src/client/views/nodes/DataVizBox/DataVizBox.tsx1
1 files changed, 1 insertions, 0 deletions
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<FieldViewProps>() 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 }[] = [];