견적서 견적일 필드 지울때 에러 처리
This commit is contained in:
parent
ffc770f2dc
commit
396d01f288
@ -177,9 +177,14 @@ export default function Estimate({ params }) {
|
|||||||
|
|
||||||
//견적일 set
|
//견적일 set
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let estimateDate = dayjs(startDate).format('YYYY-MM-DD')
|
let estimateDate
|
||||||
if (begin === 1) {
|
if (startDate) {
|
||||||
setEstimateContextState({ estimateDate: estimateDate })
|
estimateDate = dayjs(startDate).format('YYYY-MM-DD')
|
||||||
|
if (begin === 1) {
|
||||||
|
setEstimateContextState({ estimateDate: estimateDate })
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
setEstimateContextState({ estimateDate: '' })
|
||||||
}
|
}
|
||||||
}, [startDate])
|
}, [startDate])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user