@Dominic.Lerbs wrote:
Hi,
I am programatically updating an array in my model:
let model = part.diagram.model; let existingPhotoNames: Array<string> = part.data["photoNames"]; model.skipsUndoManager = true; model.startTransaction("Add photo"); if (Array.isArray(existingPhotoNames)) { model.setDataProperty(part.data, "photoNames", [...existingPhotoNames, fileName]); } else { model.setDataProperty(part.data, "photoNames", [fileName]); } model.commitTransaction("Add photo"); model.skipsUndoManager = false;However, in the model changedEvent, the transaction object (event.object) is always null for the transactionFinished event.
Can you give me a hint what I am doing wrong?
Best regards,
Dominic
Posts: 1
Participants: 1
