Skip to content

Commit 62f1ddb

Browse files
Fix discovery page when buttons are disabled (#1575)
1 parent 5d515fb commit 62f1ddb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Discovery/DiscoveryActionBar/components/DownloadManifestButton.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { handleRedirectToLoginClickResumable } from '../../Utils/HandleRedirectT
66

77
const DownloadManifestButton = ({
88
props, healIDPLoginNeeded, onlyInCommonMsg, history, location,
9-
}) => (props.config.features.exportToWorkspace?.enableDownloadManifest && (
9+
}) => (props.config.features.exportToWorkspace?.enableDownloadManifest ? (
1010
<Popover
1111
className='discovery-popover'
1212
arrowPointAtCenter
@@ -68,5 +68,5 @@ const DownloadManifestButton = ({
6868
}`}
6969
</Button>
7070
</Popover>
71-
));
71+
) : null);
7272
export default DownloadManifestButton;

src/Discovery/DiscoveryActionBar/components/ExportToWorkspaceButton.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { handleRedirectToLoginClickResumable } from '../../Utils/HandleRedirectT
66

77
const ExportToWorkspaceButton = ({
88
props, healIDPLoginNeeded, onlyInCommonMsg, setDownloadStatus, history, location,
9-
}) => (props.config.features.exportToWorkspace?.enabled && (
9+
}) => (props.config.features.exportToWorkspace?.enabled ? (
1010
<Popover
1111
className='discovery-popover'
1212
arrowPointAtCenter
@@ -61,6 +61,6 @@ const ExportToWorkspaceButton = ({
6161
: 'Login to Open In Workspace'}
6262
</Button>
6363
</Popover>
64-
));
64+
) : null);
6565

6666
export default ExportToWorkspaceButton;

0 commit comments

Comments
 (0)