room edit fix

This commit is contained in:
Igor Loskutov
2025-09-02 20:00:35 -04:00
parent 5e4f519c83
commit 97f6db5556
2 changed files with 6 additions and 2 deletions

View File

@@ -197,6 +197,7 @@ async def rooms_create_meeting(
end_date = current_time + timedelta(hours=8)
whereby_meeting = await create_meeting("", end_date=end_date, room=room)
await upload_logo(whereby_meeting["roomName"], "./images/logo.png")
# Now try to save to database

View File

@@ -88,6 +88,9 @@ export default function RoomsList() {
items: recordingTypeOptions,
});
const [room_, setRoom] = useState(roomInitialState);
const [roomInput, setRoomInput] = useState<null | typeof roomInitialState>(
null,
);
const [isEditing, setIsEditing] = useState(false);
const [editRoomId, setEditRoomId] = useState<string | null>(null);
const { loading, response, refetch } = useRoomList(PaginationPage(1));
@@ -134,7 +137,7 @@ export default function RoomsList() {
);
// here for minimal change in unrelated PR to make it work "backward-compatible" way. TODO make sense of it
const room = editedRoom || room_;
const room = roomInput || editedRoom || room_;
const roomTestWebhookMutation = useRoomTestWebhook();
@@ -334,7 +337,7 @@ export default function RoomsList() {
.toLowerCase();
setNameError("");
}
setRoom({
setRoomInput({
...room,
[name]: type === "checkbox" ? checked : value,
});