Client: fixed update indexing selection

This commit is contained in:
Dmitry Sychugov 2024-06-13 15:57:53 +05:00
parent d083d108c8
commit 02772b660b
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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) ||