mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +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() {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user