From 589730397420a35b40c616dd10878d74401bad7c Mon Sep 17 00:00:00 2001 From: msellam Date: Tue, 14 Mar 2023 14:09:08 +0100 Subject: [PATCH] fix: expand loading after cancelling request (1) - Ref gestion-de-projet#1495 --- src/components/ScopeTree/ScopeTree.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/ScopeTree/ScopeTree.tsx b/src/components/ScopeTree/ScopeTree.tsx index 1097347c8..f839b5797 100644 --- a/src/components/ScopeTree/ScopeTree.tsx +++ b/src/components/ScopeTree/ScopeTree.tsx @@ -218,8 +218,7 @@ const ScopeTree: React.FC = ({ defaultSelectedItems, onChangeSel * */ const _onExpand = async (rowId: number) => { - const controller = new AbortController() - controllerRef.current = controller + controllerRef.current = new AbortController() let _openPopulation = openPopulation ? openPopulation : [] let _rootRows = rootRows ? [...rootRows] : [] const index = _openPopulation.indexOf(rowId)