Skip to content

Commit 72cc9f7

Browse files
compute feedsourcetable header colspan based on mtc extension
1 parent 95209b3 commit 72cc9f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/manager/components/FeedSourceTable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default class FeedSourceTable extends PureComponent<Props> {
3030

3131
_renderTable = () => {
3232
const {comparisonColumn, filteredFeedSources, project} = this.props
33+
const latestVersionColSpan = isExtensionEnabled('mtc') ? 4 : 3
3334
return (
3435
<table className='feed-source-table'>
3536
<thead>
@@ -40,7 +41,7 @@ export default class FeedSourceTable extends PureComponent<Props> {
4041
<h4>{this.messages(`comparisonColumn.${comparisonColumn}`)}</h4>
4142
</th>
4243
}
43-
<th className='feed-version-column top-row' colSpan={4}>
44+
<th className='feed-version-column top-row' colSpan={latestVersionColSpan}>
4445
<h4>{this.messages('latestVersion')}</h4>
4546
</th>
4647
<th />

0 commit comments

Comments
 (0)