diff options
author | Joas Schilling <coding@schilljs.com> | 2022-08-30 23:42:18 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-08-31 09:15:40 +0300 |
commit | bcf873e8a6be7546e99a46c97a574d615647b587 (patch) | |
tree | e6a9a72cab3cba4899df29b71f5e495021d04210 | |
parent | 20e513b590603e7dd6b5d775b1470774e62ad1c2 (diff) |
Fix rendering mimetype icons
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue index 825427c5b..940b16f24 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue @@ -376,7 +376,7 @@ export default { const availableHandlers = OCA.Viewer.availableHandlers for (let i = 0; i < availableHandlers.length; i++) { - if (availableHandlers[i]?.mimes?.includes(this.mimetype)) { + if (availableHandlers[i]?.mimes?.includes && availableHandlers[i].mimes.includes(this.mimetype)) { return true } } |