web: fix ref column value for newrev

The substring call skipped the first character of newrevs. This
changes fixes the split using a correct substr.

Change-Id: I43c8ec2683fdf3da476531f54c30b2bd7742ec46
This commit is contained in:
Tristan Cacqueray 2018-11-28 13:48:14 +00:00
parent 8a58a358d1
commit 365ba836b8
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class BuildsPage extends TableFilters {
)
const linkChangeFormat = (value, rowdata) => (
<Table.Cell>
<a href={rowdata.rowData.ref_url}>{value ? rowdata.rowData.change+','+rowdata.rowData.patchset : rowdata.rowData.newrev ? rowdata.rowData.newrev.substring(7,1) : rowdata.rowData.branch}</a>
<a href={rowdata.rowData.ref_url}>{value ? rowdata.rowData.change+','+rowdata.rowData.patchset : rowdata.rowData.newrev ? rowdata.rowData.newrev.substr(0, 7) : rowdata.rowData.branch}</a>
</Table.Cell>
)
this.columns = []