Fix Bug 68386
Files not opening in the New files panel on iOS
This commit is contained in:
parent
ef116f1498
commit
00552f2ea1
@ -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");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user