hotfix: vertical view switching

This commit is contained in:
Cindy Chang
2024-09-03 14:26:51 +08:00
parent fc37d5d37d
commit 364d2a58b4

View File

@@ -228,6 +228,9 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu
const cytoscapeStore = CytoscapeStore();
cy.ready(() => {
if (rank === 'TB') {
return; // early return; only handle 'LR' (horizontal) case
}
cytoscapeStore.loadPositionsFromStorage();
localStorage.getItem(SAVE_KEY_NAME) && console.log(JSON.parse(localStorage.getItem(SAVE_KEY_NAME)));
// 判斷localStorage是否儲存過拜訪資訊