Previewing result of JS blocks #501
Answered
by
chhoumann
usernotnull
asked this question in
Q&A
-
When writing a command to AI, I may write something as below: const dv = DataviewAPI;
return dv.pages('"Indexes"').file.tags.join(', ') Is there a way to preview what will be the result of the above block? |
Beta Was this translation helpful? Give feedback.
Answered by
chhoumann
May 22, 2023
Replies: 1 comment 2 replies
-
Best way is with the Dev Tools Console. Ctrl + Shift + i will show it. Cmd instead of Ctrl on Mac. Then you can paste the code into the console and run it. But you don't have access to the QuickAdd API from |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, since it's not inside a function,
return
isn't supported. You can just remove it