Skip to content

Commit

Permalink
Fix rebase loss
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Feb 1, 2023
1 parent 9723a54 commit 786ecd0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion superset-frontend/src/views/CRUD/data/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ export const useGetDatasetRelatedObjects = (id: string) => {
.then(({ json }) => {
setUsageCount(json?.charts.count);
})
.catch(error => logging.error(error));
.catch(error => {
addDangerToast(
t(`There was an error fetching dataset's related objects`),
);
logging.error(error);
});

return { getDatasetRelatedObjects, usageCount };
};

0 comments on commit 786ecd0

Please sign in to comment.