diff --git a/packages/main/package.json b/packages/main/package.json index f432393e..0d0362c3 100644 --- a/packages/main/package.json +++ b/packages/main/package.json @@ -1,7 +1,7 @@ { "name": "@ui/main", "private": true, - "version": "0.27.8", + "version": "0.28.2", "type": "module", "scripts": { "dev": "VITE_APP_VERSION=$npm_package_version vite", diff --git a/packages/main/sections/Queries/helpers.tsx b/packages/main/sections/Queries/helpers.tsx index 35633ea5..42da26f7 100644 --- a/packages/main/sections/Queries/helpers.tsx +++ b/packages/main/sections/Queries/helpers.tsx @@ -91,9 +91,15 @@ export const dataViewAction = (panel: any, data: any) => { } }; -export const setLocalTabsState = (panel: string, queryId: string, value: number) => { +export const setLocalTabsState = ( + panel: string, + queryId: string, + value: number +) => { try { - const localTabs = JSON.parse(localStorage.getItem("localTabsState") || "{}"); + const localTabs = JSON.parse( + localStorage.getItem("localTabsState") || "{}" + ); const panelState = localTabs[panel] || {}; panelState[queryId] = value; @@ -107,10 +113,12 @@ export const setLocalTabsState = (panel: string, queryId: string, value: number) export const getLocalTabsState = (panel: string, queryId: string) => { try { - const tabsState = JSON.parse(localStorage.getItem("localTabsState") || "{}"); + const tabsState = JSON.parse( + localStorage.getItem("localTabsState") || "{}" + ); return tabsState[panel]?.[queryId] || 0; } catch (e) { console.log(e); return 0; } -}; \ No newline at end of file +};