Skip to content

Commit 56c4d75

Browse files
committed
fix(visualizer): resolve table default position are always [0,0]
Resolve table default position are always [0,0]
1 parent 7f9e8ea commit 56c4d75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/json-table-schema-visualizer/src/stores/tableCoords.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class TableCoordsStore extends PersistableStore<Array<[string, XYPosition]>> {
6161
>;
6262
if (recoveredStore === null || !Array.isArray(recoveredStore)) {
6363
this.resetPositions(newTables);
64+
return;
6465
}
6566

6667
this.tableCoords = new Map<string, XYPosition>(recoveredStore);

0 commit comments

Comments
 (0)