We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98c30bd commit 227e26bCopy full SHA for 227e26b
components/aircall/actions/create-contact/create-contact.mjs
@@ -25,7 +25,7 @@ export default {
25
},
26
27
async run({ $ }) {
28
- const refinedPhoneNumbers = this.phoneNumbers.map((item) => {
+ const refinedPhoneNumbers = (this.phoneNumbers || []).map((item) => {
29
if (typeof item === "object" && item !== null) {
30
return item;
31
}
@@ -35,7 +35,7 @@ export default {
35
value: item,
36
};
37
});
38
- const refinedEmails = this.emails.map((item) => {
+ const refinedEmails = (this.emails || []).map((item) => {
39
40
41
0 commit comments