diff --git a/src/file-actions.js b/src/file-actions.js index 898b3cf78..8ed530c5d 100644 --- a/src/file-actions.js +++ b/src/file-actions.js @@ -20,9 +20,9 @@ const fileAction = new FileAction({ iconSvgInline: () => icon, enabled: (files) => { - for (const file of files) { - return file.type == 'file' && validMimeTypes.includes(file.mime) - } + const file = files[0] + + return file.type === 'file' && validMimeTypes.includes(file.mime) }, exec: async (file) => {