Skip to content

Commit aac32d3

Browse files
committed
update async options
1 parent 9765ed1 commit aac32d3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

components/messagebird/messagebird.app.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export default {
1616
async options({
1717
organizationId, prevContext,
1818
}) {
19+
if (!organizationId) {
20+
return [];
21+
}
1922
const { next: pageToken } = prevContext;
2023
const {
2124
results, nextPageToken,
@@ -47,6 +50,9 @@ export default {
4750
async options({
4851
workspaceId, prevContext,
4952
}) {
53+
if (!workspaceId) {
54+
return [];
55+
}
5056
const { next: pageToken } = prevContext;
5157
const {
5258
results, nextPageToken,
@@ -78,6 +84,9 @@ export default {
7884
async options({
7985
workspaceId, prevContext,
8086
}) {
87+
if (!workspaceId) {
88+
return [];
89+
}
8190
const { next: pageToken } = prevContext;
8291
const {
8392
results, nextPageToken,
@@ -108,6 +117,9 @@ export default {
108117
description: "An array of unique list identifiers to add the contact to",
109118
optional: true,
110119
async options({ workspaceId }) {
120+
if (!workspaceId) {
121+
return [];
122+
}
111123
const { results } = await this.listLists({
112124
workspaceId,
113125
});

0 commit comments

Comments
 (0)