diff --git a/filemanager/js/filemanager.ts b/filemanager/js/filemanager.ts index 4eabd9679f..cdc6e64b67 100644 --- a/filemanager/js/filemanager.ts +++ b/filemanager/js/filemanager.ts @@ -1559,7 +1559,10 @@ export class filemanagerAPP extends EgwApp let data = egw.dataGetUIDdata(_senders[0].id); let mime = this.et2.getInstanceManager().widgetContainer.getWidgetById('$row'); let fe = egw.file_editor_prefered_mimes(data.data.mime); - if (fe && fe.mime && !fe.mime[data.data.mime]) return false; + if(!mime || fe && fe.mime && !fe.mime[data.data.mime]) + { + return false; + } return !!data.data.mime.match(mime.mime_odf_regex); }