Revert "do not remove condition on replace"
This reverts commit c24ae1751e.
This commit is contained in:
@@ -1536,7 +1536,7 @@ export default {
|
|||||||
onDocumentReplace (data) {
|
onDocumentReplace (data) {
|
||||||
const { replaceSchemaItem, schema, documents } = 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)
|
this.template.documents.push(...documents)
|
||||||
|
|
||||||
if (data.fields) {
|
if (data.fields) {
|
||||||
|
|||||||
Reference in New Issue
Block a user