fix: send ids instead of objects

This commit is contained in:
Hussain Nagaria 2025-10-03 22:11:28 +05:30
parent 788fe36cfa
commit 9237398342

View File

@ -131,7 +131,11 @@ function createLeadSyncSource() {
{
onSuccess: () => {
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) => {
toast.error(error.messages[0] || __("Failed to create source"));