mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
small attribute optimizations
This commit is contained in:
parent
b0528b62d8
commit
78954268ab
@ -393,7 +393,7 @@ class FNote {
|
||||
if (!type && !name) {
|
||||
return attributes;
|
||||
} else if (type && name) {
|
||||
return attributes.filter(attr => attr.type === type && attr.name === name);
|
||||
return attributes.filter(attr => attr.name === name && attr.type === type);
|
||||
} else if (type) {
|
||||
return attributes.filter(attr => attr.type === type);
|
||||
} else if (name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user