mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix StorageHelper.get() returning null after clearing (#2421)
This commit is contained in:
1 parent
da196387b8
commit
04e5180511
6 files changed
+11
-21
No files matched your search
@@ -5,7 +5,7 @@ import { Namespace, namespacesApi } from "../../api/endpoints/namespaces.api";
|
||||
import { createPageParam } from "../../navigation";
|
||||
import { apiManager } from "../../api/api-manager";
|
||||
|
||||
const selectedNamespaces = createStorage<string[]>("selected_namespaces");
|
||||
const selectedNamespaces = createStorage<string[] | undefined>("selected_namespaces", undefined);
|
||||
|
||||
export const namespaceUrlParam = createPageParam<string[]>({
|
||||
name: "namespaces",
|
||||
|
||||
@@ -81,6 +81,6 @@ export class DockTabStore<T> {
|
||||
|
||||
reset() {
|
||||
this.data.clear();
|
||||
this.storage?.clear();
|
||||
this.storage?.reset();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user