mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
1 parent
485f213461
commit
07568839f6
2 files changed
+24
-33
No files matched your search
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user