Skip to content

Commit

Permalink
fix(client): show errors in UI when deleting tag
Browse files Browse the repository at this point in the history
  • Loading branch information
neopostmodern committed Apr 1, 2023
1 parent de5c45d commit c68a6c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/src/renderer/containers/TagPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useParams } from 'react-router';
import { goBack } from 'redux-first-history';
import DeleteTagTrigger from '../components/DeleteTagTrigger';
import EntityMetadata from '../components/EntityMetadata';
import ErrorSnackbar from '../components/ErrorSnackbar';
import FatalApolloError from '../components/FatalApolloError';
import { Menu } from '../components/Menu';
import NetworkOperationsIndicator from '../components/NetworkOperationsIndicator';
Expand Down Expand Up @@ -198,6 +199,12 @@ const TagPage: FC = () => {
</Menu>
}
>
<ErrorSnackbar
error={deleteTagMutation.error}
actionDescription="delete tag"
retry={handleDeleteTag}
/>

<NetworkOperationsIndicator
query={tagQuery}
mutation={updateTagMutation}
Expand Down

0 comments on commit c68a6c0

Please sign in to comment.