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 afb291f commit c36fec8Copy full SHA for c36fec8
components/gupshup/gupshup.app.mjs
@@ -9,12 +9,12 @@ export default {
9
label: "Template ID",
10
description: "The ID of the template to use",
11
async options({ page }) {
12
- const { data } = await this.listTemplates({
+ const { templates } = await this.listTemplates({
13
params: {
14
pageNo: page,
15
},
16
});
17
- return data.map(({ id }) => id);
+ return templates?.map(({ id }) => id) || [];
18
19
20
0 commit comments