improved error handling for adding an item

This commit is contained in:
2025-09-30 13:03:00 +02:00
parent 8f9696991f
commit bf36a6605f
2 changed files with 8 additions and 2 deletions

View File

@@ -68,8 +68,10 @@ const AddItemForm: React.FC<AddItemFormProps> = ({ onClose, alert }) => {
alert(
"error",
"Fehler",
"Der Gegenstand konnte nicht erstellt werden."
res.message ||
"Der Gegenstand konnte nicht erstellt werden. (frontend bug)"
);
onClose();
}
}}
>