Skip to content

Commit c884334

Browse files
fix(lint): use optional chain for pagination
1 parent 3700b3a commit c884334

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/connectors/microsoft-excel/microsoft-excel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ async function fetchWorksheets(accessToken: string, basePath: string): Promise<W
274274
worksheets.push(...(data.value ?? []))
275275

276276
const next = data['@odata.nextLink']
277-
url = next && next.startsWith(GRAPH_API_BASE) ? next : undefined
277+
url = next?.startsWith(GRAPH_API_BASE) ? next : undefined
278278
}
279279

280280
return worksheets

0 commit comments

Comments
 (0)