mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
fix removeAttribute to take into account attribute name, closes #804
This commit is contained in:
parent
ac75fd2ca3
commit
d0c655f66a
@ -525,7 +525,7 @@ class Note extends Entity {
|
|||||||
const attributes = await this.loadOwnedAttributesToCache();
|
const attributes = await this.loadOwnedAttributesToCache();
|
||||||
|
|
||||||
for (const attribute of attributes) {
|
for (const attribute of attributes) {
|
||||||
if (attribute.type === type && (value === undefined || value === attribute.value)) {
|
if (attribute.type === type && attribute.name === name && (value === undefined || value === attribute.value)) {
|
||||||
attribute.isDeleted = true;
|
attribute.isDeleted = true;
|
||||||
await attribute.save();
|
await attribute.save();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user