This commit is contained in:
parent
e688b54b12
commit
95fee6154f
@ -1129,6 +1129,14 @@ export default function Estimate({}) {
|
||||
setSpecialNoteFirstFlg(false)
|
||||
}, [estimateContextState.resetFlag])
|
||||
|
||||
useEffect(() => {
|
||||
if (estimateContextState?.itemList.length > 0) {
|
||||
const tempList = estimateContextState.itemList.filter((item) => !displayItemList.some((resItem) => resItem.itemId === item.itemId))
|
||||
if (tempList.length > 0) {
|
||||
setDisplayItemList((prevList) => [...prevList, ...tempList])
|
||||
}
|
||||
}
|
||||
}, [estimateContextState])
|
||||
return (
|
||||
<div className="sub-content estimate">
|
||||
<div className="sub-content-inner">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user