dev #534
@ -103,17 +103,6 @@ export default function PassivityCircuitAllocation(props) {
|
||||
surfaceType[`${surface.direction}-${surface.roofMaterial.pitch}`] = surface
|
||||
})
|
||||
|
||||
if (surfaceList.length > 1) {
|
||||
if (Object.keys(surfaceType).length > 1) {
|
||||
swalFire({
|
||||
text: getMessage('module.circuit.fix.not.same.roof.error'),
|
||||
type: 'alert',
|
||||
icon: 'warning',
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if (!circuitNumber || circuitNumber === 0) {
|
||||
swalFire({
|
||||
text: getMessage('module.circuit.minimun.error'),
|
||||
@ -145,7 +134,11 @@ export default function PassivityCircuitAllocation(props) {
|
||||
originSurfaceList.concat(originSurfaceList).forEach((surface) => {
|
||||
surfaceType[`${surface.direction}-${surface.roofMaterial.pitch}`] = surface
|
||||
})
|
||||
|
||||
|
||||
break
|
||||
}
|
||||
case 'OUTDMULTI': {
|
||||
if (surfaceList.length > 1) {
|
||||
if (Object.keys(surfaceType).length > 1) {
|
||||
swalFire({
|
||||
@ -156,10 +149,6 @@ export default function PassivityCircuitAllocation(props) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'OUTDMULTI': {
|
||||
if (selectedModels.length > 1) {
|
||||
let result = false
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user