Skip to content

Commit

Permalink
fix(gui): history is not iterable error when loading existing state
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 12, 2023
1 parent 68eb8eb commit 7885bbf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gui/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7885bbf

Please sign in to comment.