회로 설정 이전 버튼 클릭 시 가대 설치 된것들 clear

This commit is contained in:
hyojun.choi 2025-02-20 14:37:37 +09:00
parent e889b6b9b9
commit 21aae63c46

View File

@ -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()