Skip to content

Commit a67fdd3

Browse files
committed
fix(javascript): update browse iterator
1 parent b7be953 commit a67fdd3

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
@@ -226,7 +226,7 @@ browseRules(
226226
requestOptions
227227
);
228228
},
229-
validate: (response) => response.nbHits < params.hitsPerPage,
229+
validate: (response) => response.hits.length < params.hitsPerPage,
230230
...browseRulesOptions,
231231
});
232232
},
@@ -271,7 +271,7 @@ browseSynonyms(
271271
params.page += 1;
272272
return resp;
273273
},
274-
validate: (response) => response.nbHits < params.hitsPerPage,
274+
validate: (response) => response.hits.length < params.hitsPerPage,
275275
...browseSynonymsOptions,
276276
});
277277
},

0 commit comments

Comments
 (0)