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:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user