bug fix
This commit is contained in:
parent
ba680273b4
commit
a12d1ca380
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user