Skip to content

Commit

Permalink
fix(dashboardeditor): use correct onClick handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Stone committed Oct 12, 2020
1 parent d42ff05 commit 0d15201
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const DashboardEditorHeader = ({
tooltipAlignment="center"
hasIconOnly
renderIcon={DocumentExport16}
onClick={onExport(dashboardJson)}
onClick={() => onExport(dashboardJson)}
/>
)}
{onDelete && (
Expand All @@ -129,7 +129,7 @@ const DashboardEditorHeader = ({
</Button>
)}
{onSubmit && (
<Button size="field" onClick={onSubmit(dashboardJson)}>
<Button size="field" onClick={() => onSubmit(dashboardJson)}>
{i18n.headerSubmitButton}
</Button>
)}
Expand Down

0 comments on commit 0d15201

Please sign in to comment.