From 62ff5c5c31dc1937d94664b652a3b8ffc6ee4024 Mon Sep 17 00:00:00 2001 From: Alex Serban Date: Wed, 21 Sep 2022 14:50:50 -0400 Subject: [PATCH] Fix rename bug --- src/components/MenuList.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/MenuList.tsx b/src/components/MenuList.tsx index d8f20384..dfa8d942 100644 --- a/src/components/MenuList.tsx +++ b/src/components/MenuList.tsx @@ -53,10 +53,6 @@ const MenuList: React.FC = ({ return setEditing([...editing, i]); }; - useEffect(() => { - setEditing([]); - }, [items, active]); - useEffect(() => { if (enterPressed || escapePressed) { setEditing([]);