From 175882652a05ebde42a713f9116aec152e6c4a42 Mon Sep 17 00:00:00 2001 From: Samuel Gunter Date: Mon, 30 Sep 2024 19:15:50 -0500 Subject: [PATCH] fix: improper list data propagation --- src/views/components/common/List.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/views/components/common/List.tsx b/src/views/components/common/List.tsx index a37b00e4c..3f003b192 100644 --- a/src/views/components/common/List.tsx +++ b/src/views/components/common/List.tsx @@ -78,13 +78,6 @@ function List({ draggables, itemKey, children, onReordered, gap }: ListProps< const transformFunction = children; useEffect(() => { - // check if the draggables content has *actually* changed - if ( - draggables.length === items.length && - draggables.every((element, index) => itemKey(element) === items[index]?.id) - ) { - return; - } setItems(wrap(draggables, itemKey)); }, [draggables]);