File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
components/close/actions/update-lead Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,17 @@ export default {
7171 const response = await this . close . updateLead ( {
7272 leadId : this . lead ,
7373 data : {
74- name : this . name ,
75- url : this . url ,
76- status_id : this . statusId ,
77- contacts : utils . parseArray ( this . contacts ) ,
78- addresses : utils . parseArray ( this . addresses ) ,
74+ const response = await this . close . updateLead ( {
75+ leadId : this . lead ,
76+ data : {
77+ ...( this . name && { name : this . name } ) ,
78+ ...( this . url && { url : this . url } ) ,
79+ ...( this . statusId && { status_id : this . statusId } ) ,
80+ ...( this . contacts && { contacts : utils . parseArray ( this . contacts ) } ) ,
81+ ...( this . addresses && { addresses : utils . parseArray ( this . addresses ) } ) ,
82+ ...moreFields ,
83+ } ,
84+ } ) ;
7985 ...moreFields ,
8086 } ,
8187 } ) ;
You can’t perform that action at this time.
0 commit comments