Skip to content

Commit 31b795f

Browse files
authored
fix(tools): fixed webflow limit and offset params (#2323)
1 parent 57b6bc3 commit 31b795f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sim/tools/webflow/list_items.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ export const webflowListItemsTool: ToolConfig<WebflowListItemsParams, WebflowLis
4444
const baseUrl = `https://api.webflow.com/v2/collections/${params.collectionId}/items`
4545
const queryParams = new URLSearchParams()
4646

47-
if (params.offset !== undefined) {
47+
if (params.offset) {
4848
queryParams.append('offset', Number(params.offset).toString())
4949
}
50-
if (params.limit !== undefined) {
50+
if (params.limit) {
5151
queryParams.append('limit', Number(params.limit).toString())
5252
}
5353

0 commit comments

Comments
 (0)