Skip to content

Commit

Permalink
fix: type null (#3637)
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishmalik authored Aug 5, 2024
1 parent 7d32831 commit 20821ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v0/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ const getDestinationExternalIDInfoForRetl = (message, destination) => {
if (externalIdArray) {
externalIdArray.forEach((extIdObj) => {
const { type, id } = extIdObj;
if (type.includes(`${destination}-`)) {
if (type && type.includes(`${destination}-`)) {
destinationExternalId = id;
objectType = type.replace(`${destination}-`, '');
identifierType = extIdObj.identifierType;
Expand All @@ -1195,7 +1195,7 @@ const getDestinationExternalIDObjectForRetl = (message, destination) => {
// some stops the execution when the element is found
externalIdArray.some((extIdObj) => {
const { type } = extIdObj;
if (type.includes(`${destination}-`)) {
if (type && type.includes(`${destination}-`)) {
obj = extIdObj;
return true;
}
Expand Down

0 comments on commit 20821ea

Please sign in to comment.