From f09d918695bfa4a2a171d8041a24fd5ca2cf3bd1 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 25 Dec 2025 18:32:52 +0200 Subject: [PATCH] fix(promoted_attributes): editing with multiplicity modifies all displayed values (closes #7992) --- apps/client/src/widgets/PromotedAttributes.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsx index cb6dc2671..33997949b 100644 --- a/apps/client/src/widgets/PromotedAttributes.tsx +++ b/apps/client/src/widgets/PromotedAttributes.tsx @@ -116,7 +116,7 @@ export function usePromotedAttributeData(note: FNote | null | undefined, compone valueAttr.attributeId = ""; } - const uniqueId = `${note.noteId}-${valueAttr.name}-${i}`; + const uniqueId = crypto.randomUUID(); cells.push({ definitionAttr, definition, valueAttr, valueName, uniqueId }); } } @@ -319,6 +319,7 @@ function MultiplicityCell({ cell, cells, setCells, setCellToFocus, note, compone const index = cells.indexOf(cell); const newCell: Cell = { ...cell, + uniqueId: crypto.randomUUID(), valueAttr: { attributeId: "", type: cell.valueAttr.type,