Fixed Bug 57933 - Client.Files.Info. Fixed console error ‘Uncaught (in promise) TypeError: l.findIndex is not a function’

This commit is contained in:
Nikita Gopienko 2022-07-01 17:30:08 +03:00
parent d1677a8070
commit d8291efa30

View File

@ -139,7 +139,7 @@ class FilesStore {
}
if (this.bufferSelection) {
const foundIndex = this.bufferSelection?.findIndex(
const foundIndex = [this.bufferSelection].findIndex(
(x) => x.id === file.id
);
if (foundIndex > -1) {