mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
Merge branch 'staging' into 'production'
Staging See merge request mbugroup/lti-web-client!254
This commit is contained in:
@@ -222,9 +222,13 @@ const TransferToLayingFormModal = () => {
|
||||
isLoading: isLoadingFlockSourceKandangsAvailability,
|
||||
} = useSWR(
|
||||
formik.values.flockSource
|
||||
? String(formik.values.flockSource.value)
|
||||
? [
|
||||
'transfer-to-laying',
|
||||
'available-qty',
|
||||
String(formik.values.flockSource.value),
|
||||
]
|
||||
: undefined,
|
||||
(id: string) =>
|
||||
([, , id]: string[]) =>
|
||||
TransferToLayingApi.getMappedFlockKandangsAvailability(Number(id))
|
||||
);
|
||||
|
||||
@@ -385,8 +389,8 @@ const TransferToLayingFormModal = () => {
|
||||
}
|
||||
};
|
||||
|
||||
getFilledInitialValues();
|
||||
getFlockSourceData();
|
||||
getFilledInitialValues();
|
||||
}, [transferToLayingId, transferToLaying]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user