Skip to content

Commit

Permalink
cleaner handling for optional callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl committed Apr 17, 2024
1 parent d7a1822 commit 1acab39
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/organisms/ChooseRobotSlideout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,7 @@ export function ChooseRobotSlideout(
? ENABLED_LINK_CSS
: DISABLED_LINK_CSS
}
onClick={
resetRunTimeParameters !== undefined && resetRunTimeParameters()
}
onClick={() => resetRunTimeParameters?.()}
paddingBottom={SPACING.spacing10}
{...targetProps}
>
Expand Down

0 comments on commit 1acab39

Please sign in to comment.