diff --git a/src/components/search/ResultConstants.js b/src/components/search/ResultConstants.js
index 5aaac6cd..594b3c80 100644
--- a/src/components/search/ResultConstants.js
+++ b/src/components/search/ResultConstants.js
@@ -20,8 +20,8 @@ export const ALL_COLUMNS = {
{id: 'datatype', labelKey: 'concept.datatype', value: 'datatype', sortOn: 'datatype'},
{id: 'updatedOn', labelKey: 'common.updated_on', value: 'version_updated_on', formatter: formatDate, sortOn: 'last_update', global: false},
{id: 'updatedBy', labelKey: 'common.updated_by', value: 'version_updated_by', global: false},
- {id: 'parent', labelKey: 'repo.repo', value: 'source', sortOn: 'source', nested: false, renderer: (item, isSplitView) => },
- {id: 'owner', labelKey: 'common.owner', value: 'owner', sortOn: 'owner', nested: false, renderer: item => },
+ {id: 'parent', labelKey: 'repo.repo', value: 'source', sortOn: 'source', nested: false, sortable: false, renderer: (item, isSplitView) => },
+ {id: 'owner', labelKey: 'common.owner', value: 'owner', sortOn: 'owner', nested: false, sortable: false, renderer: item => },
],
mappings: [
{id: 'id', labelKey: 'common.id', value: 'id', sortOn: 'id_lowercase', className: 'searchable'},
@@ -32,13 +32,13 @@ export const ALL_COLUMNS = {
repos: [
{id: 'id', labelKey: 'common.id', value: 'id', sortOn: 'id', className: 'searchable'},
{id: 'name', labelKey: 'common.name', value: 'name', sortOn: 'name', className: 'searchable'},
- {id: 'type', labelKey: 'repo.repo_type', value: 'type'},
- {id: 'owner', labelKey: 'common.owner', value: 'owner', sortOn: 'owner', renderer: item => },
+ {id: 'type', labelKey: 'repo.repo_type', value: 'type', sortable: false},
+ {id: 'owner', labelKey: 'common.owner', value: 'owner', sortOn: 'owner', sortable: false, renderer: item => },
],
orgs: [
{id: 'id', labelKey: 'common.id', value: 'id', sortOn: '_mnemonic', className: 'searchable'},
{id: 'name', labelKey: 'common.name', value: 'name', sortOn: '_name', sortBy: 'asc', className: 'searchable'},
- {id: 'createdOn', labelKey: 'common.created_on', value: 'created_on', formatter: formatDate, sortOn: 'created_on'},
+ {id: 'createdOn', labelKey: 'common.created_on', value: 'created_on', formatter: formatDate, sortOn: 'created_on', sortable: false},
],
users: [
{id: 'username', labelKey: 'user.username', value: 'username', sortOn: '_username', sortBy: 'asc', className: 'searchable'},
diff --git a/src/components/search/TableResults.jsx b/src/components/search/TableResults.jsx
index ff5562bd..feed8e70 100644
--- a/src/components/search/TableResults.jsx
+++ b/src/components/search/TableResults.jsx
@@ -45,14 +45,16 @@ const EnhancedTableHead = props => {
{t(headCell.labelKey)}
- {orderBy === headCell.id ? (
+ {
+ orderBy === headCell.id ? (
{order === 'desc' ? 'sorted descending' : 'sorted ascending'}
- ) : null}
+ ) : null
+ }
))}