Resolve note saving issue.

This commit is contained in:
Patrick Fic
2022-05-17 11:23:50 -07:00
parent 82c13eae9e
commit e92827aeb2

View File

@@ -72,13 +72,9 @@ export function NoteUpsertModalContainer({
toggleModalVisible(); toggleModalVisible();
} else { } else {
logImEXEvent("job_note_insert"); logImEXEvent("job_note_insert");
const AdditionalNoteInserts = Object.keys(relatedros).filter( const AdditionalNoteInserts = relatedros
(key) => relatedros[key] ? Object.keys(relatedros).filter((key) => relatedros[key])
); : [];
console.log(
"🚀 ~ file: note-upsert-modal.container.jsx ~ line 78 ~ handleFinish ~ AdditionalNoteInserts",
AdditionalNoteInserts
);
await insertNote({ await insertNote({
variables: { variables: {