Client: fixed update indexing selection
This commit is contained in:
parent
d083d108c8
commit
02772b660b
@ -412,7 +412,9 @@ export default function withFileActions(WrappedFileItem) {
|
||||
(x) => x.id === item.id && x.fileExst === item.fileExst,
|
||||
);
|
||||
|
||||
const isIndexUpdated = !!updateSelection.find((x) => x.id === item.id);
|
||||
const isIndexUpdated = !!updateSelection.find(
|
||||
(x) => x.id === item.id && x.fileExst === item?.fileExst,
|
||||
);
|
||||
|
||||
const isDisabledDropItem = item.security?.Create === false;
|
||||
|
||||
|
@ -2722,7 +2722,9 @@ class FilesActionStore {
|
||||
changeIndex = async (action, item) => {
|
||||
const { filesList } = this.filesStore;
|
||||
|
||||
const index = filesList.findIndex((elem) => elem.id === item?.id);
|
||||
const index = filesList.findIndex(
|
||||
(elem) => elem.id === item?.id && elem.fileExst === item?.fileExst,
|
||||
);
|
||||
|
||||
if (
|
||||
(action === VDRIndexingAction.HigherIndex && index === 0) ||
|
||||
|
Loading…
Reference in New Issue
Block a user