X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5361dea818f3f5c2b71ba4ce7ecb97e601c0403a..6d53fc76c84291e57f33d55cb1f211bfb63b9f19:/src/components/data-explorer/data-explorer.tsx

diff --git a/src/components/data-explorer/data-explorer.tsx b/src/components/data-explorer/data-explorer.tsx
index 9090bff228..f24d344ce2 100644
--- a/src/components/data-explorer/data-explorer.tsx
+++ b/src/components/data-explorer/data-explorer.tsx
@@ -11,7 +11,7 @@ export interface DataExplorerProps<T> {
     items: T[];
     columns: Array<Column<T>>;
     onColumnToggle: (column: Column<T>) => void;
-    onItemClick: (item: T) => void;
+    onItemClick?: (item: T) => void;
 }
 
 class DataExplorer<T> extends React.Component<DataExplorerProps<T> & WithStyles<CssRules>> {
@@ -38,7 +38,7 @@ class DataExplorer<T> extends React.Component<DataExplorerProps<T> & WithStyles<
                                 <TableBody className={classes.tableBody}>
                                     {
                                         items.map((item, index) => (
-                                            <TableRow key={index} hover onClick={() => onItemClick(item)}>
+                                            <TableRow key={index} hover onClick={() => onItemClick && onItemClick(item)}>
                                                 {
                                                     columns.filter(column => column.selected).map((column, index) => (
                                                         <TableCell key={index}>
