Skip to content

Build your personal knowledge base with Trilium Notes

chore(promoted_attributes): unnecessary use of .entries()

Elian Doranc3eb48322453
diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsx
index 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, compone
valueAttrs = 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