21315: rows now deselect properly, fixed some spelling errors Arvados-DCO-1.1-Signed...
[arvados.git] / services / workbench2 / src / views / shared-with-me-panel / shared-with-me-panel.tsx
index f3f827d1469fc27fe8c90d8f543123ba4755698d..e8f80d67743812a368389a26f3a7f1eb038f56ea 100644 (file)
@@ -41,7 +41,7 @@ import {
 } from 'views-components/data-explorer/renderers';
 import { DataTableFilterItem } from 'components/data-table-filters/data-table-filters';
 import { GroupContentsResource } from 'services/groups-service/groups-service';
-import { toggleOne } from 'store/multiselect/multiselect-actions';
+import { toggleOne, deselectAllOthers } from 'store/multiselect/multiselect-actions';
 import { DataColumns } from 'components/data-table/data-table';
 import { ContainerRequestState } from 'models/container-request';
 import { ProjectResource } from 'models/project';
@@ -282,6 +282,7 @@ export const SharedWithMePanel = withStyles(styles)(
 
             handleRowClick = (uuid: string) => {
                 this.props.dispatch<any>(toggleOne(uuid))
+                this.props.dispatch<any>(deselectAllOthers(uuid))
                 this.props.dispatch<any>(loadDetailsPanel(uuid));
             }
         }