diff --git a/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx b/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx index 7bd887c98..fb65b8d19 100644 --- a/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx +++ b/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx @@ -53,6 +53,20 @@ export function JobChecklistForm({ setLoading(true); logImEXEvent("job_complete_intake"); + console.log({ + values, + job, + production_vars: { + ...job.production_vars, + + note: + values.production_vars && + values.production_vars.note && + values.production_vars.note !== "" + ? job.production_vars && values.production_vars.note + : job.production_vars && job.production_vars.note, + }, + }); const result = await intakeJob({ variables: { jobId: jobId, @@ -65,12 +79,12 @@ export function JobChecklistForm({ ...(type === "intake" && { production_vars: { ...job.production_vars, - ...values.production_vars, + note: values.production_vars && values.production_vars.note && values.production_vars.note !== "" - ? job.production_vars && values.production_vars.note + ? values.production_vars && values.production_vars.note : job.production_vars && job.production_vars.note, }, }), diff --git a/client/src/components/job-scoreboard-add-button/job-scoreboard-add-button.component.jsx b/client/src/components/job-scoreboard-add-button/job-scoreboard-add-button.component.jsx index fb0916933..9f1f12e0e 100644 --- a/client/src/components/job-scoreboard-add-button/job-scoreboard-add-button.component.jsx +++ b/client/src/components/job-scoreboard-add-button/job-scoreboard-add-button.component.jsx @@ -1,12 +1,11 @@ import { useMutation } from "@apollo/client"; -import { Button, Card, Form, notification, Popover } from "antd"; +import { Button, Card, Form, InputNumber, notification, Popover } from "antd"; import moment from "moment"; import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { logImEXEvent } from "../../firebase/firebase.utils"; import { INSERT_SCOREBOARD_ENTRY } from "../../graphql/scoreboard.queries"; import FormDatePicker from "../form-date-picker/form-date-picker.component"; -import InputNumberCalculator from "../form-input-number-calculator/form-input-number-calculator.component"; export default function ScoreboardAddButton({ job, @@ -73,7 +72,7 @@ export default function ScoreboardAddButton({ }, ]} > - + - +