Skip to content

Commit

Permalink
fix: increase pageSize to 1000 for sidebar resources API call (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilR8 authored Aug 11, 2023
1 parent 5808265 commit fde20e1
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,17 +220,20 @@ export default {
},
async fetchContent(location) {
try {
// Page size is set to 1000 to attempt to get all resources.
// Defualt page size of 100 was omitting resources from the right sidebar.
// Right now no single subpart hits this number so this shouldn't be an issue
let response = "";
if (location) {
response = await getSupplementalContent({
apiUrl: this.apiUrl,
builtLocationString: location,
pageSize: 1000,
});
}
await this.getPartDictionary();
// Page size is set to 1000 to attempt to get all subpart resources. Right now no single subpart hits this number
// so this shouldn't be an issue
const subpartResponse = await getSupplementalContent({
apiUrl: this.apiUrl,
partDict: this.partDict,
Expand Down

0 comments on commit fde20e1

Please sign in to comment.