회로 설정 이전 버튼 클릭 시 가대 설치 된것들 clear
This commit is contained in:
parent
e889b6b9b9
commit
21aae63c46
@ -33,7 +33,7 @@ const ALLOCATION_TYPE = {
|
||||
export default function CircuitTrestleSetting({ id }) {
|
||||
const { getMessage } = useMessage()
|
||||
const { closePopup } = usePopup()
|
||||
const { apply, setViewCircuitNumberTexts, getEstimateData } = useTrestle()
|
||||
const { apply, setViewCircuitNumberTexts, getEstimateData, clear: clearTrestle } = useTrestle()
|
||||
const { swalFire } = useSwal()
|
||||
const { saveEstimate } = useEstimate()
|
||||
const canvas = useRecoilValue(canvasState)
|
||||
@ -392,6 +392,7 @@ export default function CircuitTrestleSetting({ id }) {
|
||||
} else {
|
||||
setTabNum(1)
|
||||
}
|
||||
clearTrestle()
|
||||
|
||||
canvas.renderAll()
|
||||
setModuleStatisticsData()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user