diff --git a/frontend/app/src/domains/customer/views/CustomersList.tsx b/frontend/app/src/domains/customer/views/CustomersList.tsx index a35d019..f9cf321 100644 --- a/frontend/app/src/domains/customer/views/CustomersList.tsx +++ b/frontend/app/src/domains/customer/views/CustomersList.tsx @@ -4,7 +4,6 @@ import { Typography } from "@mui/material" import { DataGrid, GridRowsProp, GridColDef, GridToolbar } from '@mui/x-data-grid'; import { useKeycloak } from '@react-keycloak/web' -import { ApiBuilder } from '../../../api/ApiBuilder.ts' import { ApiInvoker } from '../../../api/ApiInvoker.ts'; export default function CustomersList({producer: producer}) { @@ -18,21 +17,7 @@ export default function CustomersList({producer: producer}) { }, [keycloak]) function loadCustomers() { - apiInvoker.callApiAuthenticatedly(keycloak, api => api.getProducerCustomers, producer.id, setCustomers, console.error) - - // apiBuilder.getAuthenticatedApi(keycloak).then(api => { - // apiBuilder.invokeAuthenticatedApi(() => { - // api.getProducerCustomers((error, data, response) => { - // if (error) { - // console.error(error) - // } else { - // console.log('api.getProducerCustomers called successfully. Returned data: ' + data) - // setCustomers(data) - // } - // }) - // }, keycloak) - // }) } const rows: GridRowsProp = customers.map(customer => { diff --git a/frontend/app/src/domains/production/views/beefProduction/forms/SlaughterPropertiesForm.tsx b/frontend/app/src/domains/production/views/beefProduction/forms/SlaughterPropertiesForm.tsx index 237e524..e5a7a79 100644 --- a/frontend/app/src/domains/production/views/beefProduction/forms/SlaughterPropertiesForm.tsx +++ b/frontend/app/src/domains/production/views/beefProduction/forms/SlaughterPropertiesForm.tsx @@ -44,10 +44,10 @@ export function SlaughterPropertiesForm({ + disabled={disabled} + rules={{ required: 'Champ obligatoire' }}/>
Poids de l'animal vivant : {BeefProductionService.getLiveWeight(warmCarcassWeight || initialWarmCarcassWeight)} kg