Fix crash on mobile after remove file on viewer

This commit is contained in:
Alexey Safronov 2023-02-03 18:51:45 +03:00
parent ba0ff963cb
commit 08df544bcd

View File

@ -508,7 +508,7 @@ class MediaViewer extends React.Component {
const archiveRoom = const archiveRoom =
archiveRoomsId === targetFile.rootFolderId || archiveRoomsId === targetFile.rootFolderId ||
(!targetFile.security.Rename && !targetFile.security.Delete); (!targetFile?.security?.Rename && !targetFile?.security?.Delete);
const { title } = currentFile; const { title } = currentFile;
let isImage = false; let isImage = false;