Web: Client: InfoPanel: History. fix crash

This commit is contained in:
Elyor Djalilov 2024-07-26 14:43:46 +05:00
parent 3f0af41170
commit 52f7992393

View File

@ -114,7 +114,7 @@ export default inject<TStore>(({ dialogsStore, infoPanelStore }) => {
const { infoPanelSelection } = infoPanelStore; const { infoPanelSelection } = infoPanelStore;
const { setLinkParams, setEditLinkPanelIsVisible } = dialogsStore; const { setLinkParams, setEditLinkPanelIsVisible } = dialogsStore;
const { id, roomType, security } = infoPanelSelection!; const { id, roomType, security } = infoPanelSelection!;
const { EditRoom } = security!; const { EditRoom } = security || {};
const isFormRoom = roomType === RoomsType.FormRoom; const isFormRoom = roomType === RoomsType.FormRoom;