mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
fix(react/ribbon): attribute editor saving unnecessarily
This commit is contained in:
parent
26132a2a56
commit
470edc4d70
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user