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
fix: equal
soulsands49d1c5140e1e
diff --git a/src/services/attributes.js b/src/services/attributes.jsindex d123829d53..5dffc5c7f6 100644--- a/src/services/attributes.js+++ b/src/services/attributes.js@@ -7,7 +7,7 @@ const BAttribute = require('../becca/entities/battribute');const {formatAttrForSearch} = require("./attribute_formatter");const BUILTIN_ATTRIBUTES = require("./builtin_attributes");-const ATTRIBUTE_TYPES = [ 'label', 'relation' ];+const ATTRIBUTE_TYPES = ['label', 'relation'];/** @returns {BNote[]} */function getNotesWithLabel(name, value = undefined) {@@ -122,7 +122,7 @@ function isAttributeType(type) {function isAttributeDangerous(type, name) {return BUILTIN_ATTRIBUTES.some(attr =>- attr.type === attr.type &&+ attr.type === type &&attr.name.toLowerCase() === name.trim().toLowerCase() &&attr.isDangerous);