mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
fix(react/ribbon): attribute editor saving unnecessarily
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user