견적서 displayItemList 수정
This commit is contained in:
parent
84fb70eb33
commit
6195e7fb4a
@ -50,6 +50,7 @@ export default function Estimate({}) {
|
||||
const [hidden, setHidden] = useState(true)
|
||||
|
||||
//아이템 자동완성 리스트
|
||||
const [originDisplayItemList, setOriginDisplayItemList] = useState([])
|
||||
const [displayItemList, setDisplayItemList] = useState([])
|
||||
|
||||
//공통코드
|
||||
@ -122,6 +123,8 @@ export default function Estimate({}) {
|
||||
} else {
|
||||
updatedRes = [...res]
|
||||
}
|
||||
|
||||
setOriginDisplayItemList(res)
|
||||
setDisplayItemList(updatedRes)
|
||||
}
|
||||
})
|
||||
@ -1775,7 +1778,7 @@ export default function Estimate({}) {
|
||||
className="react-select-custom"
|
||||
classNamePrefix="custom"
|
||||
placeholder="Select"
|
||||
options={displayItemList}
|
||||
options={originDisplayItemList}
|
||||
onChange={(e) => {
|
||||
if (isObjectNotEmpty(e)) {
|
||||
onChangeDisplayItem(e.itemId, item.dispOrder, index)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user