1
0
Fork 0

fix(gui): history is not iterable error when loading existing state

This commit is contained in:
Sean Sube 2023-01-12 17:57:43 -06:00
parent 68eb8eb9b2
commit 7885bbfbdd
1 changed files with 2 additions and 5 deletions

View File

@ -31,13 +31,10 @@ export async function main() {
name: 'onnx-web', name: 'onnx-web',
partialize: (oldState) => ({ partialize: (oldState) => ({
...oldState, ...oldState,
history: {
...oldState.history,
loading: false, loading: false,
},
}), }),
storage: createJSONStorage(() => localStorage), storage: createJSONStorage(() => localStorage),
version: 1, version: 2,
})); }));
const query = new QueryClient(); const query = new QueryClient();