X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0428dcd2b44b944eb0645aeac210924e563db898..a1eff4d25c72460e1c3e52e523ba5029012d2ce9:/services/workbench2/src/views/search-results-panel/search-results-panel-view.tsx

diff --git a/services/workbench2/src/views/search-results-panel/search-results-panel-view.tsx b/services/workbench2/src/views/search-results-panel/search-results-panel-view.tsx
index bd32d997c2..10ff2b7565 100644
--- a/services/workbench2/src/views/search-results-panel/search-results-panel-view.tsx
+++ b/services/workbench2/src/views/search-results-panel/search-results-panel-view.tsx
@@ -154,21 +154,8 @@ export const SearchResultsPanelView = withStyles(styles, { withTheme: true })(
             // eslint-disable-next-line react-hooks/exhaustive-deps
         }, [selectedItem]);
 
-        const prevIsSearching = React.useRef<boolean>(props.isSearching);
         const [isLoaded, setIsLoaded] = React.useState<boolean>(false);
 
-        useEffect(() => {
-            if(prevIsSearching.current === true && props.isSearching === false) {
-                setIsLoaded(true);
-                props.stopSpinner();
-            }
-            if(props.isSearching === true) {
-                setIsLoaded(false);
-                props.startSpinner();
-            }
-        // eslint-disable-next-line react-hooks/exhaustive-deps
-        }, [props.isSearching]);
-
         const onItemClick = useCallback((uuid) => {
             setSelectedItem(uuid);
             props.onItemClick(uuid);
