mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
do not remove condition on replace
This commit is contained in:
1 parent
9bd0ad70c4
commit
c24ae1751e
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user