21315: rows now deselect properly, fixed some spelling errors Arvados-DCO-1.1-Signed...
[arvados.git] / services / workbench2 / src / views / trash-panel / trash-panel.tsx
index 2a96ffe0d7cf76f2b34c500dfecde6e6e9f8a071..ac11bb719535fe42e504a09758ce861f158679ec 100644 (file)
@@ -35,7 +35,7 @@ import {
     getTrashPanelTypeFilters
 } from 'store/resource-type-filters/resource-type-filters';
 import { CollectionResource } from 'models/collection';
-import { toggleOne } from 'store/multiselect/multiselect-actions';
+import { toggleOne, deselectAllOthers } from 'store/multiselect/multiselect-actions';
 
 type CssRules = "toolbar" | "button" | "root";
 
@@ -180,6 +180,7 @@ export const TrashPanel = withStyles(styles)(
 
             handleRowClick = (uuid: string) => {
                 this.props.dispatch<any>(toggleOne(uuid))
+                this.props.dispatch<any>(deselectAllOthers(uuid))
                 this.props.dispatch<any>(loadDetailsPanel(uuid));
             }
         }