diff --git a/connectors/src/connectors/google_drive/temporal/workflows.ts b/connectors/src/connectors/google_drive/temporal/workflows.ts index 2e9a1d225fa3..e7c64edd11c1 100644 --- a/connectors/src/connectors/google_drive/temporal/workflows.ts +++ b/connectors/src/connectors/google_drive/temporal/workflows.ts @@ -78,7 +78,7 @@ export async function googleDriveFullSync({ let nextPageToken: string | undefined = undefined; - if (!foldersToBrowse) { + if (!foldersToBrowse.length) { foldersToBrowse = await getFoldersToSync(connectorId); }