update FilesSelector panel selection logic

This commit is contained in:
namushka 2023-11-07 04:02:02 +03:00
parent 2b07fe8c4e
commit 6e838ae49a

View File

@ -645,7 +645,8 @@ export default inject(
setSelected,
} = filesStore;
const { selection: infoPanelSelection } = auth.infoPanelStore;
const { isVisible: infoPanelIsVisible, selection: infoPanelSelection } =
auth.infoPanelStore;
const selections =
isMove || isCopy || isRestoreAll || isRestore
@ -655,7 +656,7 @@ export default inject(
? selection
: bufferSelection != null
? [bufferSelection]
: infoPanelSelection != null
: infoPanelIsVisible && infoPanelSelection != null
? [infoPanelSelection]
: []
: [];