mirror of
https://github.com/zadam/trilium.git
synced 2026-01-07 23:24:25 +01:00
fix(promoted_attributes): editing with multiplicity modifies all displayed values (closes #7992)
This commit is contained in:
parent
33098a1120
commit
f09d918695
@ -116,7 +116,7 @@ export function usePromotedAttributeData(note: FNote | null | undefined, compone
|
|||||||
valueAttr.attributeId = "";
|
valueAttr.attributeId = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
const uniqueId = `${note.noteId}-${valueAttr.name}-${i}`;
|
const uniqueId = crypto.randomUUID();
|
||||||
cells.push({ definitionAttr, definition, valueAttr, valueName, uniqueId });
|
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 index = cells.indexOf(cell);
|
||||||
const newCell: Cell = {
|
const newCell: Cell = {
|
||||||
...cell,
|
...cell,
|
||||||
|
uniqueId: crypto.randomUUID(),
|
||||||
valueAttr: {
|
valueAttr: {
|
||||||
attributeId: "",
|
attributeId: "",
|
||||||
type: cell.valueAttr.type,
|
type: cell.valueAttr.type,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user