From ba7cefc48beeedc69994b0ddf563072404aa2a17 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 23 Oct 2017 11:37:49 +0300 Subject: [PATCH] fix(operation) noFilesCheck: false positive: files selected but current is ".." --- client/modules/operation/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/modules/operation/index.js b/client/modules/operation/index.js index 720df32e..12e6bf75 100644 --- a/client/modules/operation/index.js +++ b/client/modules/operation/index.js @@ -41,8 +41,8 @@ function OperationProto(operation, data) { const processFiles = currify(_processFiles); const noFilesCheck = () => { - const name = Info.name; - const is = name === '..'; + const {length} = DOM.getActiveFiles(); + const is = Boolean(!length); if (is) return Dialog.alert.noFiles(TITLE);