Skip to content

Commit

Permalink
Right Menu:
Browse files Browse the repository at this point in the history
- Query non examples DB when user canDatabase OR canDataset
  • Loading branch information
Antonio-RiveroMartnez committed Oct 19, 2022
1 parent 8079cd0 commit 78a047d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset-frontend/src/views/components/RightMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ const RightMenu = ({
}, [canUploadData]);

useEffect(() => {
if (canDatabase) {
if (canDatabase || canDataset) {
existsNonExamplesDatabases();
}
}, [canDatabase]);
}, [canDatabase, canDataset]);

const menuIconAndLabel = (menu: MenuObjectProps) => (
<>
Expand Down Expand Up @@ -325,7 +325,7 @@ const RightMenu = ({
)
) {
if (canUploadData) checkAllowUploads();
if (canDatabase) existsNonExamplesDatabases();
if (canDatabase || canDataset) existsNonExamplesDatabases();
}
return null;
};
Expand Down

0 comments on commit 78a047d

Please sign in to comment.