activateNewNote does not reload whole tree anymore

This commit is contained in:
zadam
2020-01-04 21:53:49 +01:00
parent acb76e0630
commit 2150619d62
5 changed files with 7 additions and 7 deletions

View File

@@ -553,7 +553,7 @@ class Note extends Entity {
const attributes = await this.loadOwnedAttributesToCache();
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;
await attribute.save();