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:
parent
0b9118cfb4
commit
69bb646703
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user