do not remove condition on replace

pull/440/head
Pete Matsyburka 10 months ago
parent 666e3fde4c
commit 37faa7ece6

@ -1536,7 +1536,7 @@ export default {
onDocumentReplace (data) {
const { replaceSchemaItem, schema, documents } = data
this.template.schema.splice(this.template.schema.indexOf(replaceSchemaItem), 1, schema[0])
this.template.schema.splice(this.template.schema.indexOf(replaceSchemaItem), 1, { ...replaceSchemaItem, ...schema[0] })
this.template.documents.push(...documents)
if (data.fields) {

Loading…
Cancel
Save