- Final Push Prior to Live Testing

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-04-16 16:11:41 -04:00
parent 947bc33946
commit 470eb19a2f
6 changed files with 15 additions and 12 deletions

View File

@@ -266,9 +266,6 @@ export function TaskUpsertModalComponent({
</Form.Item>
</Col>
<Col span={8}>
<Form.Item name="remind_at_sent" hidden>
<Input />
</Form.Item>
<Form.Item
label={t("tasks.fields.remind_at")}
name="remind_at"

View File

@@ -147,10 +147,17 @@ export function TaskUpsertModalContainer({ bodyshop, currentUser, taskUpsert, to
* @returns {Promise<void>}
*/
const handleExistingTask = async (id, jobId, values) => {
const task = replaceUndefinedWithNull(values);
// Remind at is dirty so lets clear remind_at_sent
if (task?.remind_at) {
task.remind_at_sent = null;
}
const taskObject = {
variables: {
taskId: id,
task: replaceUndefinedWithNull(values)
task
}
};
@@ -228,7 +235,6 @@ export function TaskUpsertModalContainer({ bodyshop, currentUser, taskUpsert, to
}
return acc;
}, {});
console.dir(dirtyValues?.remind_at_sent);
try {
await handleExistingTask(taskSource.id, taskSource.jobid, dirtyValues);
} catch (e) {

View File

@@ -15,7 +15,6 @@ export const PARTIAL_TASK_FIELDS = gql`
completed
completed_at
remind_at
remind_at_sent
priority
job {
id