mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
web: fix cannot read property clear of undefined when pressing fix it
This commit is contained in:
@@ -371,8 +371,8 @@ class KeyStore extends BaseStore<KeyStore> {
|
||||
};
|
||||
|
||||
clear = async () => {
|
||||
await this.#metadataStore.clear();
|
||||
await this.#secretStore.clear();
|
||||
await this.#metadataStore?.clear();
|
||||
await this.#secretStore?.clear();
|
||||
this.#key = undefined;
|
||||
this.set({ credentials: [], secrets: {}, isLocked: false });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user