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

This commit is contained in:
Sebastian Malton committed 2021-04-06 10:13:45 -04:00
1 parent 59bb4f556d
commit 2f3a1dbc25
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();
}
}