Skip to content

Commit

Permalink
Add user to dependency arrays in DatasetList.tsx to remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Feb 3, 2023
1 parent 4b05a1e commit 8c3505f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/views/CRUD/data/dataset/DatasetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ const DatasetList: FunctionComponent<DatasetListProps> = ({
disableSortBy: true,
},
],
[canEdit, canDelete, canExport, openDatasetEditModal, canDuplicate],
[canEdit, canDelete, canExport, openDatasetEditModal, canDuplicate, user],
);

const filterTypes: Filters = useMemo(
Expand Down Expand Up @@ -574,7 +574,7 @@ const DatasetList: FunctionComponent<DatasetListProps> = ({
operator: FilterOperator.contains,
},
],
[],
[user],
);

const menuData: SubMenuProps = {
Expand Down

0 comments on commit 8c3505f

Please sign in to comment.