1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Await floating promises

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

View File

@ -38,7 +38,7 @@ const removeSubnamespaceInjectable = getInjectable({
return;
}
store?.remove(anchor);
await store?.remove(anchor);
};
},
});

View File

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