Open SiriusXT opened 3 days ago
@SiriusXT , hmm... I've tried creating a new frontend code script and executing it with the "Run" button and it seems to run fine (creates a note called "History").
Can you give me the full widget and perhaps some instructions on how it is run? Could help me reproduce the issue.
The code above is the complete code I tested. I specifically created a new Trilium Next Desktop environment for testing, and I made some new discoveries:
NoteTreeWidget.js
:
When generating the tree, it finds the branch related to the history but fails to find the history note (possibly due to a delay in the note's creation). This leads to an error being thrown in the prepareNode
method of NoteTreeWidget.js
.setTimeout(() => {createHistory}, 1000);
, and the error will no longer occur.I will implement the widget through other means, so this bug is not urgent for me.
TriliumNext Version
0.90.8
What operating system are you using?
Windows
What is your setup?
Local + server sync
Operating System Version
Win11
Description
For this widget:
The test runs normally on 60.4, but an error is reported on 0.90.8: Error: Branch 'D6bymqShwce1_n3cbcZSSUwI2' has no child note 'n3cbcZSSUwI2'
Error logs
No response