Fix getLatestApiPrefixGroup to not fail when options.apiBase is not provided (#4462)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-30 11:27:20 -05:00
1 parent 37b8fe45f5
commit 29220c1c73
3 files changed
+63 -40

No files matched your search

+1 -1
View File
@@ -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;