Skip to content

Commit 4ac02b5

Browse files
committedMay 17, 2023
Fix typo
1 parent 3766382 commit 4ac02b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎packages/ra-core/src/controller/list/useExpanded.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const useExpandAll = (
7373
[]
7474
);
7575

76-
const isEexpanded = Array.isArray(expandedIds)
76+
const isExpanded = Array.isArray(expandedIds)
7777
? // eslint-disable-next-line eqeqeq
7878
expandedIds.some(id => ids.some(id2 => id2 == id))
7979
: false;
@@ -84,11 +84,11 @@ export const useExpandAll = (
8484
expanded_id => !ids.some(id => id == expanded_id)
8585
);
8686
setExpandedIds(
87-
isEexpanded
87+
isExpanded
8888
? unaffectedExpandedIds
8989
: unaffectedExpandedIds.concat(ids)
9090
);
91-
}, [expandedIds, setExpandedIds, isEexpanded, ids]);
91+
}, [expandedIds, setExpandedIds, isExpanded, ids]);
9292

93-
return [isEexpanded, toggleExpandedAll];
93+
return [isExpanded, toggleExpandedAll];
9494
};

0 commit comments

Comments
 (0)
Please sign in to comment.