Skip to content

Commit

Permalink
Merge branch 'staging' of github.com:dataesr/paysage-ui into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
folland87 committed Dec 1, 2022
2 parents 0eae3a2 + 9cb5378 commit 3a99a2c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ HCExportingData(Highcharts);
export default function StructureRHPage() {
const year = 2020;
const { url } = useUrl('keynumbers');
const { data, error, isLoading } = useFetch(`${url}/biatss?filters[rentree]=${year}&limit=999999`);
const { data, error, isLoading } = useFetch(`${url}/biatss?filters[rentree]=${year}&limit=0`);

const commonOptions = {
legend: { enabled: false },
Expand Down Expand Up @@ -88,7 +88,7 @@ export default function StructureRHPage() {
const dataTypes = countStaffByField({ fieldName: 'type_personnel', label: (item) => capitalize(item) });
const dataCorps = countStaffByField({ fieldName: 'code_corps', label: (item, result) => result[item].corps_lib, extraField: 'corps_lib' });

const renderLabs = () => data?.data.filter((item) => item.code_corps === 'ASI').map((item) => (
const renderLabs = () => data?.data.map((item) => (
<Bloc isLoading={isLoading} error={error} data={data} noBadge>
<BlocTitle as="h4">
{item?.corps_lib || 'Corps non renseigné'}
Expand Down

0 comments on commit 3a99a2c

Please sign in to comment.