fix(ui): properly unwrap delete style preset API request so that error is caught

This commit is contained in:
Mary Hipp 2024-08-19 15:26:02 -04:00 committed by Mary Hipp Rogers
parent 3e7923d072
commit d4797e37dc

View File

@ -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'),