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
small fixes
zadam75fc9e204879
diff --git a/src/becca/entities/note_revision.js b/src/becca/entities/note_revision.jsindex 08fb710b46..95582ed33f 100644--- a/src/becca/entities/note_revision.js+++ b/src/becca/entities/note_revision.js@@ -166,12 +166,14 @@ class NoteRevision extends AbstractEntity {utcDateLastEdited: this.utcDateLastEdited,utcDateCreated: this.utcDateCreated,utcDateModified: this.utcDateModified,+ content: this.content,contentLength: this.contentLength};}getPojoToSave() {const pojo = this.getPojo();+ delete pojo.content; // not getting persisteddelete pojo.contentLength; // not getting persistedif (pojo.isProtected) {diff --git a/src/public/app/layouts/desktop_layout.js b/src/public/app/layouts/desktop_layout.jsindex e6459b996e..2eee0b842c 100644--- a/src/public/app/layouts/desktop_layout.js+++ b/src/public/app/layouts/desktop_layout.js@@ -141,7 +141,7 @@ export default class DesktopLayout {.ribbon(new NoteInfoWidget()).button(new EditButton()).button(new ButtonWidget()- .icon('bx bx-history')+ .icon('bx-history').title("Note Revisions").command("showNoteRevisions").titlePlacement("bottom"))diff --git a/src/public/app/widgets/containers/ribbon_container.js b/src/public/app/widgets/containers/ribbon_container.jsindex 5b398cda85..2b68f042f2 100644--- a/src/public/app/widgets/containers/ribbon_container.js+++ b/src/public/app/widgets/containers/ribbon_container.js@@ -310,7 +310,7 @@ export default class RibbonContainer extends NoteContextAwareWidget {// won't trigger .refresh();await super.handleEventInChildren('setNoteContext', data);}- else if (this.isEnabled()) {+ else if (this.isEnabled() || name === 'initialRenderComplete') {const activeRibbonWidget = this.getActiveRibbonWidget();// forward events only to active ribbon tab, inactive ones don't need to be updateddiff --git a/src/public/app/widgets/sql_result.js b/src/public/app/widgets/sql_result.jsindex 895b0d1f16..142dc79e30 100644--- a/src/public/app/widgets/sql_result.js+++ b/src/public/app/widgets/sql_result.js@@ -40,6 +40,15 @@ export default class SqlResultWidget extends NoteContextAwareWidget {this.$resultContainer.empty();for (const rows of results) {+ if (typeof rows === 'object' && !Array.isArray(rows)) {+ // inserts, updates+ this.$resultContainer.empty().show().append(+ $("<pre>").text(JSON.stringify(rows, null, '\t'))+ );++ continue;+ }+if (!rows.length) {continue;}