From 7da59799ad8913149f4ea86dc4ff107620ad9678 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Fri, 1 Mar 2024 13:33:46 -0500 Subject: [PATCH] fixed enabled for valid file types Signed-off-by: Elizabeth Danzberger --- src/file-actions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) => {