mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): properly unwrap delete style preset API request so that error is caught
This commit is contained in:
parent
3e7923d072
commit
d4797e37dc
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user