mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
small attribute optimizations
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user