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
chore(promoted_attributes): unnecessary use of .entries()
Elian Doranc3eb48322453
diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsxindex 6b6543b9d0..9b2f0ad380 100644--- a/apps/client/src/widgets/PromotedAttributes.tsx+++ b/apps/client/src/widgets/PromotedAttributes.tsx@@ -109,7 +109,7 @@ export function usePromotedAttributeData(note: FNote | null | undefined, componevalueAttrs = valueAttrs.slice(0, 1);}- for (const [ i, valueAttr ] of valueAttrs.entries()) {+ for (const valueAttr of valueAttrs) {const definition = definitionAttr.getDefinition();// if not owned, we'll force creation of a new attribute instead of updating the inherited one