From 95137ca7b5dc37b7cd28887588f6e8d4fd361a36 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 7 Aug 2022 17:10:39 +0530 Subject: [PATCH] minor code refactoring --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 859eaff..3e47ffc 100644 --- a/index.html +++ b/index.html @@ -1016,7 +1016,7 @@ // remove empty slots from array floGlobals.appObjects.cc.wipArticles = floGlobals.appObjects.cc.wipArticles.filter(v => v) // if no articleID is provided, get a random article from work-in-progress - const randomArticle = floCrypto.randInt(0, floGlobals.appObjects.cc.wipArticles.filter(v => v).length - 1) + const randomArticle = floCrypto.randInt(0, floGlobals.appObjects.cc.wipArticles.length - 1) params['articleID'] = floGlobals.appObjects.cc.wipArticles[randomArticle] } await Promise.all([