From 7885bbfbdd55b6d84e6dfcac50e3c365300e76f8 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Thu, 12 Jan 2023 17:57:43 -0600 Subject: [PATCH] fix(gui): history is not iterable error when loading existing state --- gui/src/main.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gui/src/main.tsx b/gui/src/main.tsx index 1c8ed814c..4e67d8f88 100644 --- a/gui/src/main.tsx +++ b/gui/src/main.tsx @@ -31,13 +31,10 @@ export async function main() { name: 'onnx-web', partialize: (oldState) => ({ ...oldState, - history: { - ...oldState.history, - loading: false, - }, + loading: false, }), storage: createJSONStorage(() => localStorage), - version: 1, + version: 2, })); const query = new QueryClient();