fix(gui): history is not iterable error when loading existing state
This commit is contained in:
parent
68eb8eb9b2
commit
7885bbfbdd
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue