서까래 변경 안되는 현상 수정

This commit is contained in:
hyojun.choi 2024-12-30 11:11:52 +09:00
parent 42e6cb38e0
commit 6414a1116c
2 changed files with 2 additions and 1 deletions

View File

@ -137,6 +137,7 @@ export default function RoofAllocationSetting(props) {
showKey={'clCodeNm'} showKey={'clCodeNm'}
sourceKey={'clCode'} sourceKey={'clCode'}
targetKey={roof.raft ? 'raft' : 'raftBaseCd'} targetKey={roof.raft ? 'raft' : 'raftBaseCd'}
onChange={(e) => handleChangeRaft(e, index)}
/> />
</div> </div>
)} )}

View File

@ -253,7 +253,7 @@ export function useRoofAllocationSetting(id) {
// 서까래 변경 // 서까래 변경
const handleChangeRaft = (e, index) => { const handleChangeRaft = (e, index) => {
const raftValue = e.value const raftValue = e.clCode
const newRoofList = currentRoofList.map((roof, idx) => { const newRoofList = currentRoofList.map((roof, idx) => {
if (idx === index) { if (idx === index) {