From 470edc4d704047dee8233e3143b47e3d5369059d Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 27 Aug 2025 15:35:44 +0300 Subject: [PATCH] fix(react/ribbon): attribute editor saving unnecessarily --- apps/client/src/widgets/ribbon/components/AttributeEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/ribbon/components/AttributeEditor.tsx b/apps/client/src/widgets/ribbon/components/AttributeEditor.tsx index 718187b2e..73a37fb4a 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; }