From 2a71d07788e286da993b601791dba8778152fd6d Mon Sep 17 00:00:00 2001 From: Jenny Sharps Date: Wed, 5 Dec 2018 13:21:51 +0000 Subject: [PATCH] Fix model initialization validation --- src/pass.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pass.js b/src/pass.js index 73304d3..c22f991 100644 --- a/src/pass.js +++ b/src/pass.js @@ -103,8 +103,7 @@ class Pass { // list without dynamic components like manifest, signature or pass files (will be added later in the flow) and hidden files. let noDynList = removeHidden(modelFileList).filter(f => !/(manifest|signature|pass)/i.test(f)); - if (!noDynList.length || !noDynList.some(f => f.toLowerCase().includes("icon")) - || !remoteFilesList.some(f => f.toLowerCase().includes("icon"))) { + if (!noDynList.length || ![...noDynList, ...remoteFilesList].some(f => f.toLowerCase().includes("icon"))) { let eMessage = formatError("MODEL_UNINITIALIZED", path.parse(this.model).name); throw new Error(eMessage); }