assert appstore state migration return type

This commit is contained in:
jeffvli
2026-03-17 19:06:45 -07:00
parent db88a6bc22
commit c636029003
+2 -2
View File
@@ -239,10 +239,10 @@ export const useAppStore = createWithEqualityFn<AppSlice>()(
},
migrate: (persistedState, version) => {
if (version <= 2) {
return {} as AppState;
return {} as AppSlice;
}
const state = persistedState as AppState;
const state = persistedState as AppSlice;
if (version <= 4 && !state.sidebar.rightHeight) {
state.sidebar.rightHeight = '320px';
}