do not remove condition on replace

This commit is contained in:
Pete Matsyburka
2025-01-17 17:11:10 +02:00
parent 666e3fde4c
commit 37faa7ece6
+1 -1
View File
@@ -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) {