Skip to content

Commit

Permalink
fix(workspace): Hide export to excel button if not configured (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBrunton authored Aug 13, 2024
1 parent ec13a35 commit dc1a02f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/workspace-fusion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-fusion",
"version": "9.0.8",
"version": "9.0.9",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down
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 dc1a02f

Please sign in to comment.