Skip to content

Commit

Permalink
Pass eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
kennsippell committed Nov 23, 2024
1 parent d677b48 commit 2442fcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/hierarchy-operations/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const fetch = {

const ancestorIdsNotFound = ancestors.rows.filter(ancestor => !ancestor.doc).map(ancestor => ancestor.key);
if (ancestorIdsNotFound.length > 0) {
throw Error(`Contact '${prettyPrintDocument(contactDoc)} has parent id(s) '${ancestorIdsNotFound.join(',')}' which could not be found.`);
throw Error(`Contact '${contactDoc?.name}' (${contactDoc?._id}) has parent id(s) '${ancestorIdsNotFound.join(',')}' which could not be found.`);
}

return ancestors.rows.map(ancestor => ancestor.doc);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/hierarchy-operations/lineage-manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const replaceLineage = (doc, lineageAttributeName, replaceWith, startingFromIdIn
element: doc[lineageAttributeName],
attributeName: 'parent',
};
}
};

const state = initialState();
while (state.element) {
Expand Down

0 comments on commit 2442fcc

Please sign in to comment.