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
666e3fde4c
commit
37faa7ece6
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])
|
||||
this.template.schema.splice(this.template.schema.indexOf(replaceSchemaItem), 1, { ...replaceSchemaItem, ...schema[0] })
|
||||
this.template.documents.push(...documents)
|
||||
|
||||
if (data.fields) {
|
||||
|
||||
Reference in new issue
Block a user