managementStateLoaded삭제
This commit is contained in:
parent
2b81cc192e
commit
8de8416160
@ -83,9 +83,6 @@ export default function CircuitTrestleSetting({ id }) {
|
||||
} = useCircuitTrestle()
|
||||
// const { trigger: moduleSelectedDataTrigger } = useCanvasPopupStatusController(2)
|
||||
useEffect(() => {
|
||||
if (!managementState) {
|
||||
setManagementState(managementStateLoaded)
|
||||
}
|
||||
// setCircuitData({
|
||||
// makers,
|
||||
// selectedMaker,
|
||||
|
||||
@ -37,9 +37,7 @@ export default function PassivityCircuitAllocation(props) {
|
||||
const circuitNumberText = useRecoilValue(fontSelector('circuitNumberText'))
|
||||
useEffect(() => {
|
||||
setModuleStatisticsData()
|
||||
if (!managementState) {
|
||||
setManagementState(managementStateLoaded)
|
||||
}
|
||||
|
||||
canvas
|
||||
.getObjects()
|
||||
.filter((obj) => obj.name === POLYGON_TYPE.MODULE)
|
||||
|
||||
@ -13,7 +13,7 @@ import { useTrestle } from '@/hooks/module/useTrestle'
|
||||
import { usePlan } from '@/hooks/usePlan'
|
||||
|
||||
export function useEstimate() {
|
||||
const { managementStateLoaded } = useContext(GlobalDataContext)
|
||||
const { managementState } = useContext(GlobalDataContext)
|
||||
const { setIsGlobalLoading } = useContext(QcastContext)
|
||||
const router = useRouter()
|
||||
const loginUserState = useRecoilValue(loginUserStore)
|
||||
@ -31,16 +31,18 @@ export function useEstimate() {
|
||||
* @param {Object} estimateParam - 견적서 저장 데이터
|
||||
*/
|
||||
const saveEstimate = async (estimateParam) => {
|
||||
console.log('managementState', managementState)
|
||||
|
||||
const userId = loginUserState.userId
|
||||
const saleStoreId = managementStateLoaded.saleStoreId
|
||||
const saleStoreId = managementState.saleStoreId
|
||||
const objectNo = currentCanvasPlan.objectNo
|
||||
const planNo = currentCanvasPlan.planNo
|
||||
const slope = estimateParam.roofSurfaceList[0].slope
|
||||
const angle = estimateParam.roofSurfaceList[0].angle
|
||||
const surfaceType = managementStateLoaded.surfaceType
|
||||
const setupHeight = managementStateLoaded.installHeight
|
||||
const standardWindSpeedId = managementStateLoaded.standardWindSpeedId
|
||||
const snowfall = managementStateLoaded.verticalSnowCover
|
||||
const surfaceType = managementState.surfaceType
|
||||
const setupHeight = managementState.installHeight
|
||||
const standardWindSpeedId = managementState.standardWindSpeedId
|
||||
const snowfall = managementState.verticalSnowCover
|
||||
const drawingFlg = '1'
|
||||
|
||||
const saveEstimateData = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user