Skip to content

Commit c47dc30

Browse files
authored
Merge pull request #5903 from unicef/310254/hotfix-program-cycles
[AB#310254]-change limit to 100 in ProgramCycleAutoCompleteRest
2 parents 5a5bfab + 14bbfcf commit c47dc30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/frontend/src/shared/autocompletes/rest/ProgramCycleAutocompleteRest.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const ProgramCycleAutocompleteRest = ({
1919
const { t } = useTranslation();
2020
const [queryParams, setQueryParams] = useState({
2121
offset: 0,
22-
limit: 10,
22+
limit: 100,
2323
ordering: 'title',
2424
status: ['ACTIVE', 'DRAFT'],
2525
});
@@ -37,10 +37,11 @@ export const ProgramCycleAutocompleteRest = ({
3737
value={value}
3838
label={t('Programme Cycle')}
3939
dataCy="filters-program-cycle-autocomplete"
40-
fetchFunction={() =>
40+
fetchFunction={(_, __, params) =>
4141
RestService.restBusinessAreasProgramsCyclesList({
4242
businessAreaSlug: businessArea,
4343
programCode: programId,
44+
...params,
4445
})
4546
}
4647
businessArea={businessArea}

0 commit comments

Comments
 (0)