site.pages.find doesn't behave as expected.
#4854
Unanswered
msaifi03
asked this question in
Question / Answer
Replies: 1 comment
-
No, it isn't.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Apparently,
site.pagesisn't really a native JS array, is it? I tried usingsite.pages.findbut instead of a single page object it keeps returning a_Queryobject with a data field that contains ALL pages, instead of just returning the page I'm trying to find. I thought the variable was just a normal array of pages but it seems not, is this a bug or intended behaviour for whatever data type it is supposed to be?Beta Was this translation helpful? Give feedback.
All reactions