Deleting a note sometimes causes the following exception to occur:
Uncaught Exception:
TypeError: Cannot read property 'getContent' of undefined
at Function.<anonymous> (.../trilium/src/services/notes.js:365:46)
at Function.sqliteTransaction (.../trilium/node_modules/better-sqlite3/lib/methods/transactio...:24)
at Object.transactional (.../trilium/src/services/sql.js:238:52)
at Timeout._onTimeout (.../trilium/src/services/notes.js:361:17)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
How to reproduce:
Open devtools in the electron app
Go to network tab > throttling and set to 'Offline'
Create a new note, then delete it
Go back to network tab > throttling and reset to 'No throttling'
After a couple of seconds the error will appear
This seems to be due to notes being deleted while note images are still being downloaded.
Trilium version:
master@f3959cf2aada016b4b96fc097e7d6fee9185b123
Log file: trilium-2021-07-21.logDeleting a note sometimes causes the following exception to occur:
How to reproduce:
This seems to be due to notes being deleted while note images are still being downloaded.