Skip to content

Commit

Permalink
Merge pull request #11146 from karthikjeeyar/fix-tektonhub-config-issue
Browse files Browse the repository at this point in the history
Bug 2061333: Add optional chaining to avoid npe
  • Loading branch information
openshift-merge-robot committed Mar 7, 2022
2 parents 85016a7 + 6070fb4 commit 64bbd83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const useTektonHubIntegration = () => {
'config',
);
if (config && configLoaded && !configLoadErr) {
const devconsoleIntegrationEnabled = config.spec?.hub?.params.find(
const devconsoleIntegrationEnabled = config.spec?.hub?.params?.find(
(p) => p.name === TEKTON_HUB_INTEGRATION_KEY,
);
return devconsoleIntegrationEnabled ? devconsoleIntegrationEnabled.value : true;
Expand Down

0 comments on commit 64bbd83

Please sign in to comment.