fix(react/ribbon): attribute editor saving unnecessarily

This commit is contained in:
Elian Doran 2025-08-27 15:35:44 +03:00
parent 26132a2a56
commit 470edc4d70
No known key found for this signature in database

View File

@ -139,8 +139,8 @@ export default function AttributeEditor({ note, componentId, notePath, ntxId, hi
async function save() { async function save() {
const attributes = parseAttributes(); const attributes = parseAttributes();
if (!attributes) { if (!attributes || !needsSaving) {
// An error occurred and will be reported to the user. // An error occurred and will be reported to the user, or nothing to save.
return; return;
} }