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: { diff --git a/package.json b/package.json index 112d189df..c4174514e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "license": "UNLICENSED", "engines": { "node": ">=16.0.0", - "npm": ">=7.0.0" + "npm": ">=8.0.0" }, "scripts": { "setup": "yarn && cd client && yarn",