Revert "do not remove condition on replace"

This reverts commit c24ae1751e.
This commit is contained in:
Pete Matsyburka
2025-01-17 16:55:11 +02:00
parent 185ac2cbee
commit 995e040a4e
+1 -1
View File
@@ -1536,7 +1536,7 @@ export default {
onDocumentReplace (data) {
const { replaceSchemaItem, schema, documents } = data
Object.assign(replaceSchemaItem, schema[0])
this.template.schema.splice(this.template.schema.indexOf(replaceSchemaItem), 1, schema[0])
this.template.documents.push(...documents)
if (data.fields) {