Await floating promises

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2023-02-20 11:33:06 +03:00
1 parent 0b9118cfb4
commit 69bb646703
2 files changed
+2 -2

No files matched your search

@@ -38,7 +38,7 @@ const removeSubnamespaceInjectable = getInjectable({
return; return;
} }
store?.remove(anchor); await store?.remove(anchor);
}; };
}, },
}); });
@@ -222,7 +222,7 @@ export class NamespaceStore extends KubeObjectStore<Namespace, NamespaceApi> {
@action @action
async remove(item: Namespace) { async remove(item: Namespace) {
if (item.isSubnamespace()) { if (item.isSubnamespace()) {
this.dependencies.removeSubnamespace(item.getName()); await this.dependencies.removeSubnamespace(item.getName());
return; return;
} }