21315: rows now deselect properly, fixed some spelling errors Arvados-DCO-1.1-Signed...
[arvados.git] / services / workbench2 / src / views / project-panel / project-panel.tsx
index efaf53eb49b21334d87227740cfcaabf9ceaaa33..83b6c8ba47472b2fa230ebf6afe8d5e8af1b61a5 100644 (file)
@@ -52,7 +52,7 @@ import { CollectionResource } from 'models/collection';
 import { resourceIsFrozen } from 'common/frozen-resources';
 import { ProjectResource } from 'models/project';
 import { NotFoundView } from 'views/not-found-panel/not-found-panel';
-import { toggleOne } from 'store/multiselect/multiselect-actions';
+import { deselectAllOthers, toggleOne } from 'store/multiselect/multiselect-actions';
 
 type CssRules = 'root' | 'button';
 
@@ -325,6 +325,7 @@ export const ProjectPanel = withStyles(styles)(
 
             handleRowClick = (uuid: string) => {
                 this.props.dispatch<any>(toggleOne(uuid))
+                this.props.dispatch<any>(deselectAllOthers(uuid))
                 this.props.dispatch<any>(loadDetailsPanel(uuid));
             };
         }