fix: send ids instead of objects
This commit is contained in:
parent
788fe36cfa
commit
9237398342
@ -131,7 +131,11 @@ function createLeadSyncSource() {
|
|||||||
{
|
{
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
toast.success(__("New Lead Syncing Source created successfully"));
|
toast.success(__("New Lead Syncing Source created successfully"));
|
||||||
emit("updateStep", "edit-source", { ...syncSource.value });
|
emit("updateStep", "edit-source", {
|
||||||
|
...syncSource.value,
|
||||||
|
facebook_page: syncSource.value.facebook_page.id,
|
||||||
|
facebook_lead_form: syncSource.value.facebook_lead_form.id,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
toast.error(error.messages[0] || __("Failed to create source"));
|
toast.error(error.messages[0] || __("Failed to create source"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user