From a12d1ca3809f76c08b3a8697bce31aa533737915 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 7 Aug 2022 17:09:12 +0530 Subject: [PATCH] bug fix --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index d2751ed..859eaff 100644 --- a/index.html +++ b/index.html @@ -1013,6 +1013,8 @@ } if (firstLoad || params.articleID !== pagesData.params.articleID) { if (!params.articleID) { + // 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) params['articleID'] = floGlobals.appObjects.cc.wipArticles[randomArticle]