mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Fix logical grouping in isLaying and isLayingCategory
checks
This commit is contained in:
@@ -480,8 +480,8 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
const isLaying =
|
||||
initialValues?.is_laying ??
|
||||
projectFlockKandangLookup?.is_laying ??
|
||||
projectFlockKandangDetail?.project_flock?.category === 'LAYING' ||
|
||||
false;
|
||||
(projectFlockKandangDetail?.project_flock?.category === 'LAYING' ||
|
||||
false);
|
||||
|
||||
const isTransition =
|
||||
initialValues?.is_transition ??
|
||||
@@ -633,8 +633,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
const isLayingCategory =
|
||||
initialValues?.is_laying ??
|
||||
projectFlockKandangLookup?.is_laying ??
|
||||
projectFlockKandangDetail?.project_flock?.category === 'LAYING' ||
|
||||
false;
|
||||
(projectFlockKandangDetail?.project_flock?.category === 'LAYING' || false);
|
||||
|
||||
const isGrowingCategory = !isLayingCategory;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user