We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ae0c9 commit cb3dbabCopy full SHA for cb3dbab
src/components/context/storage.tsx
@@ -40,6 +40,7 @@ const reducer: Reducer<State, Actions> = (state, action) => {
40
};
41
42
const storage = Object.entries(localStorage).reduce((record: State, [key, value]: [string, string]) => {
43
+ if (!is(schemas.dataset, value)) return record;
44
return { ...record, [key]: JSON.parse(value) as T };
45
}, {});
46
0 commit comments