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

@@ -203,8 +203,9 @@ export function RoomsPage() {
</div>
)}
{/* Modal */}
{/* Modal — key forces remount so useState reinitializes with the new room */}
<RoomModal
key={editingRoom?.id ?? 'new'}
open={modalOpen}
room={editingRoom}
onClose={() => { setModalOpen(false); setSaveError(null) }}