Skip to content

Commit

Permalink
fix(ui): properly unwrap delete style preset API request so that erro…
Browse files Browse the repository at this point in the history
…r is caught
  • Loading branch information
Mary Hipp authored and Mary Hipp committed Aug 19, 2024
1 parent 2c5e1a1 commit 48e5e7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const StylePresetListItem = ({ preset }: { preset: StylePresetRecordWithI

const handleDeletePreset = useCallback(async () => {
try {
await deleteStylePreset(preset.id);
await deleteStylePreset(preset.id).unwrap();
toast({
status: 'success',
title: t('stylePresets.templateDeleted'),
Expand Down

0 comments on commit 48e5e7b

Please sign in to comment.