Fix crash on mobile after remove file on viewer
This commit is contained in:
parent
ba0ff963cb
commit
08df544bcd
@ -508,7 +508,7 @@ class MediaViewer extends React.Component {
|
||||
|
||||
const archiveRoom =
|
||||
archiveRoomsId === targetFile.rootFolderId ||
|
||||
(!targetFile.security.Rename && !targetFile.security.Delete);
|
||||
(!targetFile?.security?.Rename && !targetFile?.security?.Delete);
|
||||
const { title } = currentFile;
|
||||
|
||||
let isImage = false;
|
||||
|
Loading…
Reference in New Issue
Block a user