small attribute optimizations

This commit is contained in:
zadam 2023-01-27 16:59:59 +01:00
parent b0528b62d8
commit 78954268ab

View File

@ -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) {