diff --git a/src/components/Board/Items/Item/Item.js b/src/components/Board/Items/Item/Item.js index 816d479..6731c12 100644 --- a/src/components/Board/Items/Item/Item.js +++ b/src/components/Board/Items/Item/Item.js @@ -172,7 +172,7 @@ const Item = ({ loaded={loaded} id={id} > - + ); @@ -192,14 +192,14 @@ const MemoizedItem = memo( } ); -const BaseItem = ({ setState, state }) => { +const BaseItem = ({ setState, itemId }) => { const selectedItems = useRecoilValue(selectedItemsAtom); - const realState = useRecoilValue(ItemsFamily(state.id)); + const state = useRecoilValue(ItemsFamily(itemId)); return ( ); }; diff --git a/src/components/Board/Items/ItemList.js b/src/components/Board/Items/ItemList.js index f3a798d..7f85cc4 100644 --- a/src/components/Board/Items/ItemList.js +++ b/src/components/Board/Items/ItemList.js @@ -9,7 +9,7 @@ const ItemList = () => { const itemList = useRecoilValue(ItemListAtom); return itemList.map((item) => ( - + )); };