Compare commits

..

No commits in common. "6f689a5321921a67efdaedf20713d3285329a73a" and "a6d9e0c41b16cff2516b37e7a719c3f90947c797" have entirely different histories.

View File

@ -23,7 +23,7 @@ const Trestle = forwardRef((props, ref) => {
const autoSelectTimeoutRef = useRef(null)
// ()
const AUTO_SELECT_TIMEOUT = 500 // API
const AUTO_SELECT_TIMEOUT = 700 // API
const {
trestleState,
trestleDetail,
@ -66,7 +66,7 @@ const Trestle = forwardRef((props, ref) => {
const [flag, setFlag] = useState(false)
const tempModuleSelectionData = useRef(null)
const [autoSelectStep, setAutoSelectStep] = useState(null) // 'raftBase', 'trestle', 'constMthd', 'roofBase', 'construction'
const prevHajebichiRef = useRef();
useEffect(() => {
if (roofs && roofs.length > 0 && !selectedRoof) {
@ -80,15 +80,6 @@ const Trestle = forwardRef((props, ref) => {
if (selectedRoof && ["C", "R"].includes(selectedRoof.raftAuth) && roofs && roofs.length > 0) {
onChangeRaftBase(roofs[0]);
}
if (
selectedRoof && ["C", "R"].includes(selectedRoof.roofPchAuth) && roofs && roofs.length > 0 &&
roofs[0].hajebichi !== prevHajebichiRef.current
) {
prevHajebichiRef.current = roofs[0].hajebichi;
onChangeHajebichi(roofs[0].hajebichi);
}
//
restoreModuleInstArea()
}, [roofs, selectedRoof]) // selectedRoof