Skip to content

Commit 2b193ff

Browse files
fix(ui): delete stored state on error & save new state
1 parent 96ee394 commit 2b193ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

invokeai/frontend/web/src/features/ui/layouts/navigation-api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ export class NavigationApi {
195195
log.debug({ stored: parseify(stored) }, `Restored view ${key} from storage`);
196196
} catch (error) {
197197
log.error({ error: parseify(error) }, `Failed to restore view ${key} from storage`);
198+
this._app.storage.delete(key);
198199
initialize();
200+
this._app.storage.set(key, api.toJSON());
199201
}
200202
} else {
201203
initialize();

0 commit comments

Comments
 (0)