Client: Fixed deletion of a single tag in the edit panel.

This commit is contained in:
Tatiana Lopaeva 2024-07-11 18:38:24 +03:00
parent 0266d5cb74
commit 619e5c591e

View File

@ -179,8 +179,11 @@ const EditRoomEvent = ({
actions.push(addTagsToRoom(room.id, newTags));
room.tags = tags;
}
if (removedTags.length)
if (removedTags.length) {
actions.push(removeTagsFromRoom(room.id, removedTags));
room.tags = tags;
}
await Promise.all(actions);