Commit 125e3556 authored by Jörg Richter's avatar Jörg Richter

Adapt to `dmx-api` (newFormModel() operates in-place)

See dmx-platform/dmx-platform#413
parent 65de5e2d
Pipeline #11826 passed with stage
in 1 second
......@@ -58,7 +58,7 @@ export default {
this.objectToEdit = undefined // reset dirty state, see isDirty()
return this.object
} else {
this.objectToCompare = this.type.newFormModel(this.object)
this.objectToCompare = this.type.newFormModel(this.object.clone())
this.objectToEdit = this.objectToCompare.clone()
return this.objectToEdit
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment