Skip to content

Build your personal knowledge base with Trilium Notes

fix(react/ribbon): attribute editor saving unnecessarily

Elian Doran470edc4d7040
diff --git a/apps/client/src/widgets/ribbon/components/AttributeEditor.tsx b/apps/client/src/widgets/ribbon/components/AttributeEditor.tsx
index 718187b2ee..73a37fb4af 100644
--- a/apps/client/src/widgets/ribbon/components/AttributeEditor.tsx
+++ b/apps/client/src/widgets/ribbon/components/AttributeEditor.tsx
@@ -139,8 +139,8 @@ export default function AttributeEditor({ note, componentId, notePath, ntxId, hi
async function save() {
const attributes = parseAttributes();
- if (!attributes) {
- // An error occurred and will be reported to the user.
+ if (!attributes || !needsSaving) {
+ // An error occurred and will be reported to the user, or nothing to save.
return;
}