Skip to content

Commit

Permalink
fix(api-axios): use request.limit if response.limit not present on all
Browse files Browse the repository at this point in the history
  • Loading branch information
Christie Baker authored and Christie Baker committed Dec 13, 2024
1 parent 2cef9cb commit 0994453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-axios/src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default class AvApi {
const response = await this.query(config);

const key = this.getQueryResultKey(response.data);
const limit = response.data.limit || config.limit;
const limit = response.data.limit || config?.limit;
const totalPages = Math.ceil(response.data.totalCount / limit);
const result = response.data[key] || [];

Expand Down

0 comments on commit 0994453

Please sign in to comment.