mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): delete stored state on error & save new state
This commit is contained in:
@@ -195,7 +195,9 @@ export class NavigationApi {
|
||||
log.debug({ stored: parseify(stored) }, `Restored view ${key} from storage`);
|
||||
} catch (error) {
|
||||
log.error({ error: parseify(error) }, `Failed to restore view ${key} from storage`);
|
||||
this._app.storage.delete(key);
|
||||
initialize();
|
||||
this._app.storage.set(key, api.toJSON());
|
||||
}
|
||||
} else {
|
||||
initialize();
|
||||
|
||||
Reference in New Issue
Block a user