Skip to content

Commit ecd2634

Browse files
committed
chore(javascript): fix typings
1 parent aecc7c2 commit ecd2634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ browseObjects<T>(
169169
}: BrowseOptions<BrowseResponse<T>> & BrowseProps,
170170
requestOptions?: RequestOptions
171171
): Promise<BrowseResponse<T>> {
172-
if (browseParams.hitsPerPage == null) {
173-
browseParams.hitsPerPage = 1000;
172+
if (browseParams == null) {
173+
browseParams = { hitsPerPage: 1000 };
174174
}
175175

176176
return createIterablePromise<BrowseResponse<T>>({

0 commit comments

Comments
 (0)