mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
refactor(FE): Limit Location select options to 100
This commit is contained in:
@@ -236,7 +236,9 @@ const UniformityTable = () => {
|
|||||||
setInputValue: setFilterLocationInputValue,
|
setInputValue: setFilterLocationInputValue,
|
||||||
options: filterLocationOptions,
|
options: filterLocationOptions,
|
||||||
isLoadingOptions: isLoadingFilterLocations,
|
isLoadingOptions: isLoadingFilterLocations,
|
||||||
} = useSelect(LocationApi.basePath, 'id', 'name', 'search');
|
} = useSelect(LocationApi.basePath, 'id', 'name', 'search', {
|
||||||
|
limit: '100',
|
||||||
|
});
|
||||||
|
|
||||||
// ===== FETCH PROJECT FLOCKS DATA FOR FILTER =====
|
// ===== FETCH PROJECT FLOCKS DATA FOR FILTER =====
|
||||||
const filterProjectFlocksUrl = useMemo(() => {
|
const filterProjectFlocksUrl = useMemo(() => {
|
||||||
@@ -308,6 +310,7 @@ const UniformityTable = () => {
|
|||||||
project_flock_id: filterProjectFlock.value.toString(),
|
project_flock_id: filterProjectFlock.value.toString(),
|
||||||
kandang_id: filterKandang.value.toString(),
|
kandang_id: filterKandang.value.toString(),
|
||||||
withpopulation: Boolean(true).toString(),
|
withpopulation: Boolean(true).toString(),
|
||||||
|
limit: '100',
|
||||||
});
|
});
|
||||||
return `${ProjectFlockApi.basePath}/kandangs/lookup?${params.toString()}`;
|
return `${ProjectFlockApi.basePath}/kandangs/lookup?${params.toString()}`;
|
||||||
}, [filterProjectFlock, filterKandang]);
|
}, [filterProjectFlock, filterKandang]);
|
||||||
|
|||||||
Reference in New Issue
Block a user