Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
simplify code
Tom81e0c6dcc287
diff --git a/src/public/app/widgets/type_widgets/canvas_note.js b/src/public/app/widgets/type_widgets/canvas_note.jsindex b51259affe..bb66e89a3d 100644--- a/src/public/app/widgets/type_widgets/canvas_note.js+++ b/src/public/app/widgets/type_widgets/canvas_note.js@@ -408,14 +408,9 @@ export default class ExcalidrawTypeWidget extends TypeWidget {isNewSceneVersion() {const sceneVersion = this.getSceneVersion();- if (- this.currentSceneVersion === this.SCENE_VERSION_INITIAL // initial scene version update- || this.currentSceneVersion !== sceneVersion- ) {- return true;- } else {- return false;- }+ return this.currentSceneVersion === this.SCENE_VERSION_INITIAL // initial scene version update+ || this.currentSceneVersion !== sceneVersion // ensure scene changed+ ;}getSceneVersion() {