Skip to content

Commit

Permalink
fix: update buildIntegrationAction to return available false when act…
Browse files Browse the repository at this point in the history
…ion is undefined

Refs: SHELL-266 (#567)
  • Loading branch information
CataldoMazzilli authored Jan 15, 2025
1 parent 18d7d70 commit 17717b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/store/integrations/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export function buildIntegrationAction(
target: unknown
): [Action | undefined, boolean] {
try {
return [integration?.(target), true];
if (!integration) {
return [undefined, false];
}
return [integration(target), true];
} catch (e) {
return [undefined, false];
}
Expand Down

0 comments on commit 17717b4

Please sign in to comment.