fix: cdn.hotelsync.ru nginx config + RoomModal key for state reset

- Add cdn.hotelsync.ru server block to nginx config (serves /var/www/uploads)
- Add cdn.hotelsync.ru to HTTP redirect server_name
- RoomModal: add key={editingRoom?.id ?? 'new'} to force state reinit on room change
- RoomModal: remove categories[0] fallback for categoryId (show 'Без категории' instead)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-23 13:14:20 +03:00
parent 95809851fb
commit 31d135563f
3 changed files with 23 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ export function RoomModal({ open, room, categories = [], onClose, onSave, onDele
sortOrder: room?.sortOrder ?? 99,
allowHourly: room?.allowHourly ?? false,
hourlyRate: room?.hourlyRate ?? 1000,
categoryId: room?.categoryId ?? (categories.find(c => c.name === room?.type)?.id ?? categories[0]?.id ?? ''),
categoryId: room?.categoryId ?? (categories.find(c => c.name === room?.type)?.id ?? ''),
description: room?.description ?? '',
earlyCheckinFee: room?.earlyCheckinFee ?? '',
lateCheckoutFee: room?.lateCheckoutFee ?? '',