Skip to content

Commit

Permalink
user home | html fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Nov 30, 2020
1 parent bd4aad2 commit 092300e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/search/ResultsTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ const ExpandibleRow = props => {
<TableCell align='center' style={{width: '120px', padding: '2px'}}>
{
map(resourceDefinition.tags, tag => (
<Link onClick={event => navigateTo(event, get(item, tag.hrefAttr))}>
<div key={tag.id} style={{lineHeight: '10px', marginBottom: '5px'}}>
<Link key={tag.id} to='' onClick={event => navigateTo(event, get(item, tag.hrefAttr))}>
<div style={{lineHeight: '10px', marginBottom: '5px'}}>
<div className='flex-vertical-center' style={{fontSize: '11px'}}>
<span>{tag.icon}</span>
<span>{tag.label}</span>
Expand Down Expand Up @@ -601,7 +601,7 @@ const ResultsTable = ({resource, results, onPageChange, onSortChange, sortParams
{
map(results.items, item => (
<ExpandibleRow
key={item.id}
key={item.uuid || item.id}
item={item}
resource={resource}
resourceDefinition={resourceDefinition}
Expand Down
1 change: 1 addition & 0 deletions src/components/users/UserHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class UserHome extends React.Component {

componentDidUpdate(prevProps) {
if(prevProps.location.pathname !== this.props.location.pathname) {
this.url = this.getURLFromPath()
this.refreshDataByURL()
this.onTabChange(null, this.getDefaultTabIndex())
}
Expand Down

0 comments on commit 092300e

Please sign in to comment.