mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 08:45:50 +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() {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user