From 95fee6154f0e2dc73ba666a5fccf7534978790e8 Mon Sep 17 00:00:00 2001 From: basssy Date: Thu, 20 Feb 2025 11:23:27 +0900 Subject: [PATCH] #792 --- src/components/estimate/Estimate.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index f4214e68..deb95caf 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -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 (