We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15a4013 commit 7ac0df2Copy full SHA for 7ac0df2
templates/javascript/clients/client/api/helpers.mustache
@@ -169,8 +169,8 @@ browseObjects<T>(
169
}: BrowseOptions<BrowseResponse<T>> & BrowseProps,
170
requestOptions?: RequestOptions
171
): Promise<BrowseResponse<T>> {
172
- if (browseParams.hitsPerPage == null) {
173
- browseParams.hitsPerPage = 1000;
+ if (browseParams == null) {
+ browseParams = { hitsPerPage: 1000 };
174
}
175
176
return createIterablePromise<BrowseResponse<T>>({
0 commit comments