Просмотр исходного кода

fix missing type field in place creation request body

neyrogovnarik 1 месяц назад
Родитель
Сommit
2d92b3029c
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      frontend/src/components/PlaceForm.tsx

+ 1 - 0
frontend/src/components/PlaceForm.tsx

@@ -91,6 +91,7 @@ export default function PlaceForm({ type, onSuccess, place }: PlaceFormProps) {
         access_info: accessInfo || undefined,
         tags: selectedTags,
         features: selectedFeatures,
+        type,
       }
 
       if (coverImage) body.cover_image = coverImage