Skip to content

Commit

Permalink
fix: fixed the view mode edge mode actions issue #2650
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrashekhara.n authored and corteggiano committed May 20, 2024
1 parent 03e58e7 commit 4298a6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dashboard/src/components/widgets/widgetActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ const WidgetActions = ({ widget }: { widget: DashboardWidget }) => {
isQueryEmpty(widget.properties.queryConfig as StyledSiteWiseQueryConfig);
const cannotDownload = canOnlyDownloadLiveMode.some((t) => t === widget.type);

if (readOnly && (isEmptyQuery || cannotDownload)) return <></>;
if (readOnly && (isEmptyQuery || cannotDownload || isEdgeModeEnabled))
return <></>;

return (
<div
Expand Down

0 comments on commit 4298a6b

Please sign in to comment.