fixed noItem view appearing on viewDetails context click

This commit is contained in:
mushka 2022-10-07 16:48:45 +03:00
parent f0c6c21030
commit 44de9ce824

View File

@ -36,11 +36,13 @@ class InfoPanelStore {
};
normalizeSelection = (selection) => {
const isContextMenuSelection = selection.isContextMenuSelection;
return {
...selection,
isRoom: selection.isRoom || !!selection.roomType,
icon: this.getItemIcon(selection, 32),
isContextMenuSelection: false,
wasContextMenuSelection: !!isContextMenuSelection,
};
};