Fix StorageHelper.get() returning null after clearing (#2421)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-04-01 10:27:27 -04:00
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();
}
}