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