mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 12:19:06 +00:00
room edit fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user