From e92827aeb27390fbad91c703d22f8e07abe04f73 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Tue, 17 May 2022 11:23:50 -0700 Subject: [PATCH] Resolve note saving issue. --- .../note-upsert-modal/note-upsert-modal.container.jsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/client/src/components/note-upsert-modal/note-upsert-modal.container.jsx b/client/src/components/note-upsert-modal/note-upsert-modal.container.jsx index 6d29589a5..a5ff684f7 100644 --- a/client/src/components/note-upsert-modal/note-upsert-modal.container.jsx +++ b/client/src/components/note-upsert-modal/note-upsert-modal.container.jsx @@ -72,13 +72,9 @@ export function NoteUpsertModalContainer({ toggleModalVisible(); } else { logImEXEvent("job_note_insert"); - const AdditionalNoteInserts = Object.keys(relatedros).filter( - (key) => relatedros[key] - ); - console.log( - "🚀 ~ file: note-upsert-modal.container.jsx ~ line 78 ~ handleFinish ~ AdditionalNoteInserts", - AdditionalNoteInserts - ); + const AdditionalNoteInserts = relatedros + ? Object.keys(relatedros).filter((key) => relatedros[key]) + : []; await insertNote({ variables: {