IO-1312 Resolve delivery checklist issue.
This commit is contained in:
@@ -117,21 +117,22 @@ export function JobChecklistForm({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (type === "intake" && job.owner && job.owner.id) {
|
||||||
//Updae Owner Allow to Text
|
//Updae Owner Allow to Text
|
||||||
const updateOwnerResult = await updateOwner({
|
const updateOwnerResult = await updateOwner({
|
||||||
variables: {
|
variables: {
|
||||||
ownerId: job.owner.id,
|
ownerId: job.owner.id,
|
||||||
owner: { allow_text_message: values.allow_text_message },
|
owner: { allow_text_message: values.allow_text_message },
|
||||||
},
|
},
|
||||||
});
|
|
||||||
|
|
||||||
if (!!updateOwnerResult.errors) {
|
|
||||||
notification["error"]({
|
|
||||||
message: t("checklist.errors.complete", {
|
|
||||||
error: JSON.stringify(result.errors),
|
|
||||||
}),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!!updateOwnerResult.errors) {
|
||||||
|
notification["error"]({
|
||||||
|
message: t("checklist.errors.complete", {
|
||||||
|
error: JSON.stringify(result.errors),
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user