mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 18:34:01 +00:00
useEditorData fix
This commit is contained in:
@@ -72,7 +72,7 @@ export default function useEditorData({ tabid, reloadToken = 0, loadFromArgs = n
|
|||||||
if (onInitialData) onInitialData(initFallback);
|
if (onInitialData) onInitialData(initFallback);
|
||||||
value = initFallback;
|
value = initFallback;
|
||||||
// move to local forage
|
// move to local forage
|
||||||
await localforage.setItem(localStorageKey, JSON.stringify(initFallback));
|
await localforage.setItem(localStorageKey, initFallback);
|
||||||
localStorage.removeItem(localStorageKey);
|
localStorage.removeItem(localStorageKey);
|
||||||
} else {
|
} else {
|
||||||
const init = await localforage.getItem(localStorageKey);
|
const init = await localforage.getItem(localStorageKey);
|
||||||
|
|||||||
Reference in New Issue
Block a user