mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix getLatestApiPrefixGroup to not fail when options.apiBase is not provided (#4462)
This commit is contained in:
1 parent
37b8fe45f5
commit
29220c1c73
3 files changed
+63
-40
No files matched your search
@@ -219,7 +219,7 @@ export abstract class KubeObjectStore<T extends KubeObject> extends ItemStore<T>
|
||||
|
||||
case "rejected":
|
||||
if (onLoadFailure) {
|
||||
onLoadFailure(result.reason.message);
|
||||
onLoadFailure(result.reason.message || result.reason);
|
||||
} else {
|
||||
// if onLoadFailure is not provided then preserve old behaviour
|
||||
throw result.reason;
|
||||
|
||||
Reference in new issue
Block a user