File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Website/components/datamodelview Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,7 @@ export const List = ({ setCurrentIndex }: IListProps) => {
3030 const parentRef = useRef < HTMLDivElement | null > ( null ) ;
3131 // used to relocate section after search/filter
3232 const [ sectionVirtualItem , setSectionVirtualItem ] = useState < string | null > ( null ) ;
33-
34- // Track position before search for restoration
35- const isTabSwitching = useRef ( false ) ;
36-
33+
3734 const handleCopyGroupLink = useCallback ( async ( groupName : string ) => {
3835 const link = generateGroupLink ( groupName ) ;
3936 const success = await copyToClipboard ( link ) ;
@@ -274,13 +271,7 @@ export const List = ({ setCurrentIndex }: IListProps) => {
274271 entity = { item . entity }
275272 group = { item . group }
276273 onTabChange = { ( isChanging : boolean ) => {
277- isTabSwitching . current = isChanging ;
278- if ( isChanging ) {
279- // Reset after a short delay to allow for the content change
280- setTimeout ( ( ) => {
281- isTabSwitching . current = false ;
282- } , 100 ) ;
283- }
274+
284275 } }
285276 search = { search }
286277 />
You can’t perform that action at this time.
0 commit comments