Fix Bug 68386

Files not opening in the New files panel on iOS
This commit is contained in:
Viktor Fomin 2024-06-07 11:06:04 +03:00
parent ef116f1498
commit 00552f2ea1

View File

@ -145,10 +145,9 @@ const NewFilesPanel = (props) => {
const item = newFiles.find((file) => file.id.toString() === id); const item = newFiles.find((file) => file.id.toString() === id);
onFileClick(item);
markAsRead(folderIds, fileIds, item) markAsRead(folderIds, fileIds, item)
.then(() => { .then(() => {
onFileClick(item);
const newListFiles = listFiles.filter( const newListFiles = listFiles.filter(
(file) => file.id.toString() !== id, (file) => file.id.toString() !== id,
); );
@ -262,7 +261,7 @@ const NewFilesPanel = (props) => {
} }
} }
return window.open(webUrl, "_blank"); return window.open(webUrl, openOnNewPage ? "_blank" : "_self");
} }
}; };