Skip to content

Commit

Permalink
feat: add nullish check for conversationCustomAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
scmmishra committed May 9, 2024
1 parent 26cebce commit db67192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const getMessageVariables = ({
'agent.email': assignee?.email ?? '',
};
const conversationCustomAttributeVariables = Object.entries(
conversationCustomAttributes
conversationCustomAttributes ?? {}
).reduce((acc: CustomAttributes, [key, value]) => {
acc[`conversation.custom_attribute.${key}`] = value;
return acc;
Expand Down

0 comments on commit db67192

Please sign in to comment.