currentRoofList 오류 수정
This commit is contained in:
parent
e01b6d90cb
commit
558594e450
@ -79,7 +79,8 @@ export default function ContextRoofAllocationSetting(props) {
|
||||
</button>
|
||||
</div>
|
||||
<div className="grid-option-wrap">
|
||||
{currentRoofList.map((roof, index) => {
|
||||
{currentRoofList.length > 0 &&
|
||||
currentRoofList.map((roof, index) => {
|
||||
return (
|
||||
<div className="grid-option-box" key={index}>
|
||||
<div className="d-check-radio pop no-text">
|
||||
|
||||
@ -42,7 +42,7 @@ export function useRoofAllocationSetting(id) {
|
||||
const [currentRoofMaterial, setCurrentRoofMaterial] = useState(roofMaterials[0]) // 팝업 내 기준 지붕재
|
||||
const [roofList, setRoofList] = useRecoilState(addedRoofsState) // 배치면 초기설정에서 선택한 지붕재 배열
|
||||
const [editingLines, setEditingLines] = useState([])
|
||||
const [currentRoofList, setCurrentRoofList] = useState(null)
|
||||
const [currentRoofList, setCurrentRoofList] = useState([])
|
||||
const currentAngleType = useRecoilValue(currentAngleTypeSelector)
|
||||
const globalLocaleState = useRecoilValue(globalLocaleStore)
|
||||
const [basicInfo, setBasicInfo] = useState(null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user