Skip to content

Commit

Permalink
[components] HistoryListItem: Use '-' for current revision
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Nov 19, 2019
1 parent 2522e5c commit 9c39d16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@sanity/components/src/history/ListItem.js
Expand Up @@ -213,9 +213,10 @@ export default class HistoryListItem extends React.PureComponent {
}

const ParameterizedLink = linkComponent
const linkRev = isCurrentVersion ? '-' : rev

return ParameterizedLink ? (
<ParameterizedLink params={{...linkParams, rev}} {...rootProps}>
<ParameterizedLink params={{...linkParams, rev: linkRev}} {...rootProps}>
{content}
</ParameterizedLink>
) : (
Expand Down

0 comments on commit 9c39d16

Please sign in to comment.