Skip to content

Commit c36fec8

Browse files
committed
update templateId prop
1 parent afb291f commit c36fec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/gupshup/gupshup.app.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ export default {
99
label: "Template ID",
1010
description: "The ID of the template to use",
1111
async options({ page }) {
12-
const { data } = await this.listTemplates({
12+
const { templates } = await this.listTemplates({
1313
params: {
1414
pageNo: page,
1515
},
1616
});
17-
return data.map(({ id }) => id);
17+
return templates?.map(({ id }) => id) || [];
1818
},
1919
},
2020
},

0 commit comments

Comments
 (0)