Skip to content

Commit 4e500b5

Browse files
committed
fix: improve Tasks service availability check to include Tasks.Tasklists
1 parent c6a09b4 commit 4e500b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/quickstart/quickstart.gs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function listTaskLists() {
2424
maxResults: 10,
2525
};
2626

27-
if (!Tasks) {
27+
if (!Tasks || !Tasks.Tasklists) {
2828
throw new Error('Enable the Tasks Advanced Service.');
2929
}
3030
// Returns all the authenticated user's task lists.

0 commit comments

Comments
 (0)