Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
small attribute optimizations
zadam78954268ab2d
diff --git a/src/public/app/entities/fnote.js b/src/public/app/entities/fnote.jsindex 652d0b7e18..69147b2b3e 100644--- a/src/public/app/entities/fnote.js+++ b/src/public/app/entities/fnote.js@@ -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) {