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
client: Fix duplicate ribbon tabs (fixes #582)
Elian Dorana4c0ae06db13
diff --git a/src/public/app/widgets/containers/ribbon_container.js b/src/public/app/widgets/containers/ribbon_container.jsindex ff0f439246..522a29e378 100644--- a/src/public/app/widgets/containers/ribbon_container.js+++ b/src/public/app/widgets/containers/ribbon_container.js@@ -351,6 +351,11 @@ export default class RibbonContainer extends NoteContextAwareWidget {}}+ noteTypeMimeChangedEvent() {+ // We are ignoring the event which triggers a refresh since it is usually already done by a different+ // event and causing a race condition in which the items appear twice.+ }+/*** Executed as soon as the user presses the "Edit" floating button in a read-only text note.*