update food

This commit is contained in:
hamid zarghami
2025-11-15 14:45:04 +03:30
parent 0fd87e99f2
commit eaa9ef2a9a
18 changed files with 609 additions and 61 deletions
+2 -1
View File
@@ -75,7 +75,8 @@ const CreateFood: FC = () => {
const foodData: CreateFoodType = {
...values,
isActive,
images: imageUrls
images: imageUrls,
content: values.content.filter(item => item && item.trim().length > 0)
}
createFood(foodData, {