Skip to content

An open source alternative to Tableau. Embeddable visual analytic

fix: geom init value (#144)

islxyqwe257e659db6b2
diff --git a/packages/graphic-walker/src/utils/save.ts b/packages/graphic-walker/src/utils/save.ts
index fc8c5c16..43c85913 100644
--- a/packages/graphic-walker/src/utils/save.ts
+++ b/packages/graphic-walker/src/utils/save.ts
@@ -33,9 +33,10 @@ export function initEncoding(): DraggableFieldState {
}
export function initVisualConfig(): IVisualConfig {
+ const [ geom ] = GEMO_TYPES.generic;
return {
defaultAggregated: true,
- geoms: [GEMO_TYPES[0]!],
+ geoms: [geom],
coordSystem: 'generic',
stack: 'stack',
showActions: false,