Skip to content

Commit 669fa67

Browse files
committed
chore(javascript): fix fix fix
1 parent 9f794ed commit 669fa67

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

templates/javascript/clients/client/api/helpers.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,14 @@ browseObjects<T>(
169169
}: BrowseOptions<BrowseResponse<T>> & BrowseProps,
170170
requestOptions?: RequestOptions
171171
): Promise<BrowseResponse<T>> {
172-
if (browseParams == null) {
173-
browseParams = { hitsPerPage: 1000 };
174-
}
175-
176172
return createIterablePromise<BrowseResponse<T>>({
177173
func: (previousResponse) => {
178174
return this.browse(
179175
{
180176
indexName,
181177
browseParams: {
182178
cursor: previousResponse ? previousResponse.cursor : undefined,
179+
hitsPerPage: 1000,
183180
...browseParams,
184181
},
185182
},

0 commit comments

Comments
 (0)