From fd4078dba54662223709f8b36c32476864d40c6f Mon Sep 17 00:00:00 2001 From: jacovinus Date: Fri, 22 Dec 2023 15:11:06 +0100 Subject: [PATCH] fix: package version and formatting --- packages/main/package.json | 2 +- packages/main/sections/Queries/helpers.tsx | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) 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 +};