Skip to content

Commit

Permalink
fix(workspace): Hide export to excel button if not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBrunton committed Jun 17, 2024
1 parent 927b682 commit d65090b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export const GridWrapper = <
placement: 'right',
type: 'button',
};
setIcons((s) => [...s, icon]);
if (config.excelExport) {
setIcons((s) => [...s, icon]);
}

return () => {
setIcons((s) => s.filter((y) => y.name !== icon.name));
Expand Down

0 comments on commit d65090b

Please sign in to comment.