Fix KubeObjectDetails drawer not working for Cluster scoped resources (#5954)

- Fix not displaying spinner while object is not defined

- Fix not displaying loading error if object is not defined

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-08-01 13:25:29 +03:00
1 parent 485f213461
commit 07568839f6
2 files changed
+24 -33

No files matched your search

+1 -1
View File
@@ -355,7 +355,7 @@ export abstract class KubeObjectStore<
async loadFromPath(resourcePath: string) {
const { namespace, name } = parseKubeApi(resourcePath);
assert(name && namespace, "Both name and namesapce must be part of resourcePath");
assert(name, "name must be part of resourcePath");
return this.load({ name, namespace });
}