fix: remove transition restrict logic

This commit is contained in:
ValdiANS
2026-05-30 09:13:56 +07:00
parent a1cb401a1c
commit 366260608f
@@ -463,13 +463,16 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
}, [selectedKandang]); }, [selectedKandang]);
// ===== TRANSITION RESTRICTION LOGIC ===== // ===== TRANSITION RESTRICTION LOGIC =====
const isTransitionPeriod = useMemo(() => { // const isTransitionPeriod = useMemo(() => {
return ( // return (
initialValues?.is_transition ?? // initialValues?.is_transition ??
projectFlockKandangLookup?.is_transition ?? // projectFlockKandangLookup?.is_transition ??
false // false
); // );
}, [initialValues, projectFlockKandangLookup]); // }, [initialValues, projectFlockKandangLookup]);
// set to false by request: 30 May 2026, 09:11
const isTransitionPeriod = false;
const recordingRestriction = useMemo(() => { const recordingRestriction = useMemo(() => {
let isLaying: boolean; let isLaying: boolean;