21225: Add styles to wrap mutually exclusive tabs and data explorer in same paper
[arvados.git] / services / workbench2 / src / views-components / data-explorer / data-explorer.tsx
index 37a15bcf77031cb78a0ab47e12fd4f57c4fb5d7e..bcf8683e89ff724cd0b731b358d6ff80d59fc842 100644 (file)
@@ -23,8 +23,8 @@ interface Props {
     working?: boolean;
 }
 
-const mapStateToProps = ({ progressIndicator, dataExplorer, router, multiselect, selectedResourceUuid, properties}: RootState, { id }: Props) => {
-    const working = !!progressIndicator.some(p => p.id === id && p.working);
+const mapStateToProps = ({ progressIndicator, dataExplorer, router, multiselect, selectedResourceUuid, properties, searchBar}: RootState, { id }: Props) => {
+    const working = !!progressIndicator.some(p => p.working);
     const dataExplorerState = getDataExplorer(dataExplorer, id);
     const currentRoute = router.location ? router.location.pathname : "";
     const isMSToolbarVisible = multiselect.isVisible;
@@ -37,6 +37,7 @@ const mapStateToProps = ({ progressIndicator, dataExplorer, router, multiselect,
         selectedResourceUuid,
         checkedList: multiselect.checkedList,
         working,
+        searchBarValue: searchBar.searchValue,
     };
 };
 
@@ -85,7 +86,7 @@ const mapDispatchToProps = () => {
         setSelectedUuid: (uuid: string | null) => {
             dispatch<any>(setSelectedResourceUuid(uuid));
         },
-        
+
         onRowClick,
 
         onRowDoubleClick,