Skip to content

Commit

Permalink
changing canShowSaveButton to shouldShowSaveButton
Browse files Browse the repository at this point in the history
  • Loading branch information
fisjac committed Sep 26, 2023
1 parent 513f8eb commit 57327bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/SqlLab/components/SaveQuery/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const SaveQuery = ({
const [showSaveDatasetModal, setShowSaveDatasetModal] = useState(false);
const isSaved = !!query.remoteId;
const canExploreDatabase = !!database?.allows_virtual_table_explore;
const canShowSaveButton =
const shouldShowSaveButton =
database?.allows_virtual_table_explore !== undefined;

const overlayMenu = (
Expand Down Expand Up @@ -182,7 +182,7 @@ const SaveQuery = ({

return (
<Styles className="SaveQuery">
{canShowSaveButton && (
{shouldShowSaveButton && (
<SaveDatasetActionButton
setShowSave={setShowSave}
overlayMenu={canExploreDatabase ? overlayMenu : null}
Expand Down

0 comments on commit 57327bf

Please sign in to comment.