mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
useEditorData fix
This commit is contained in:
parent
b5f504f3b1
commit
f3dd187df7
@ -72,7 +72,7 @@ export default function useEditorData({ tabid, reloadToken = 0, loadFromArgs = n
|
||||
if (onInitialData) onInitialData(initFallback);
|
||||
value = initFallback;
|
||||
// move to local forage
|
||||
await localforage.setItem(localStorageKey, JSON.stringify(initFallback));
|
||||
await localforage.setItem(localStorageKey, initFallback);
|
||||
localStorage.removeItem(localStorageKey);
|
||||
} else {
|
||||
const init = await localforage.getItem(localStorageKey);
|
||||
|
Loading…
Reference in New Issue
Block a user