do not remove condition on replace

This commit is contained in:
Pete Matsyburka committed 2025-01-16 01:05:06 +02:00
1 parent 9bd0ad70c4
commit c24ae1751e
1 file changed
+1 -1
+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])
Object.assign(replaceSchemaItem, schema[0])
this.template.documents.push(...documents)
if (data.fields) {