Additional Checklist resolutions.

This commit is contained in:
Patrick Fic
2021-08-12 13:20:56 -07:00
parent 8ff2a6e6c4
commit ef79ccc299
2 changed files with 5 additions and 1 deletions

View File

@@ -177,7 +177,7 @@ export function JobChecklistForm({
initialValues={{ initialValues={{
...(type === "intake" && { ...(type === "intake" && {
addToProduction: true, addToProduction: true,
allow_text_message: job.owner.allow_text_message, allow_text_message: job.owner && job.owner.allow_text_message,
scheduled_completion: scheduled_completion:
(job && job.scheduled_completion) || (job && job.scheduled_completion) ||
moment().businessAdd( moment().businessAdd(

View File

@@ -1849,6 +1849,10 @@ export const QUERY_JOB_CHECKLISTS = gql`
scheduled_delivery scheduled_delivery
actual_delivery actual_delivery
production_vars production_vars
owner {
id
allow_text_message
}
bodyshop { bodyshop {
id id
intakechecklist intakechecklist