sottey / tje

JSON Note editor for Trilium
MIT License
10 stars 0 forks source link

Issue in Render Note #4

Open Olympusmonsgames opened 6 months ago

Olympusmonsgames commented 6 months ago

Upon importing the zip (safe import off), I get this error message when I switch to the Render Note Trilium JSON Editor:

Error
×
You're passing an async function to api.runOnBackend() which will likely not work as you intended. Either make the function synchronous (by removing 'async' keyword), or use api.runAsyncOnBackendWithManualTransactionHandling()

I checked all notes properties (type, owned attributes) as-per the readme.

Olympusmonsgames commented 6 months ago

Here's a screengrab showing my issue and setup:

https://github.com/sottey/tje/assets/59992365/3aa8defd-866c-471c-b9a7-9d15fc9b03b4

https://github.com/sottey/tje/assets/59992365/5f79e2f3-288a-40f6-be77-ed3da05c2d27

kangaroolab commented 1 month ago

same issue here...any help?

sottey commented 1 month ago

Hi all. Apologies for not responding more quickly. I am unable to reproduce this issue, but will have time this weekend to look into it. Thanks for reaching out!

kangaroolab commented 1 month ago

you can see someone's fix at https://github.com/sottey/tje/issues/5