Skip to content

Commit

Permalink
chore: code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir-4116 committed Nov 2, 2023
1 parent da0ffb8 commit 4370cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/v2/destinations/gladly/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const getEndpoint = (destination) => {
const formatField = (message, fieldName) => {
const field = getFieldValueFromMessage(message, fieldName);
if (field) {
if (typeof field === 'object' && Array.isArray(field)) {
if (Array.isArray(field)) {
return field.map((item) => ({ original: item }));
}
return [{ original: field }];
Expand Down

0 comments on commit 4370cee

Please sign in to comment.