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: {