Fixes to allow a new Project to have globals without UI components
This commit is contained in:
1 parent
fc716b9d95
commit
85cc9c2c3d
11 files changed
+61
-32
No files matched your search
@@ -35,7 +35,7 @@ exports.newProfilePosts = function newProfilePosts() {
|
||||
let array = Array.from(thisObject.profile.posts)
|
||||
|
||||
switch (thisObject.direction) {
|
||||
case NT.globals.constants.queries.DIRECTION_FUTURE: {
|
||||
case NT.globals.queryConstants.DIRECTION_FUTURE: {
|
||||
for (let i = thisObject.initialIndex; i < thisObject.initialIndex + thisObject.amountRequested; i++) {
|
||||
let arrayItem = array[i]
|
||||
if (arrayItem === undefined) { break }
|
||||
@@ -43,7 +43,7 @@ exports.newProfilePosts = function newProfilePosts() {
|
||||
}
|
||||
break
|
||||
}
|
||||
case NT.globals.constants.queries.DIRECTION_PAST: {
|
||||
case NT.globals.queryConstants.DIRECTION_PAST: {
|
||||
for (let i = thisObject.initialIndex; i > thisObject.initialIndex - thisObject.amountRequested; i--) {
|
||||
let arrayItem = array[i]
|
||||
if (arrayItem === undefined) { break }
|
||||
|
||||
Reference in new issue
Block a user