minor code refactoring
This commit is contained in:
parent
a12d1ca380
commit
95137ca7b5
@ -1016,7 +1016,7 @@
|
|||||||
// remove empty slots from array
|
// remove empty slots from array
|
||||||
floGlobals.appObjects.cc.wipArticles = floGlobals.appObjects.cc.wipArticles.filter(v => v)
|
floGlobals.appObjects.cc.wipArticles = floGlobals.appObjects.cc.wipArticles.filter(v => v)
|
||||||
// if no articleID is provided, get a random article from work-in-progress
|
// 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]
|
params['articleID'] = floGlobals.appObjects.cc.wipArticles[randomArticle]
|
||||||
}
|
}
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user