File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments