Fixed hiding of branch drop down when there are no branches

This commit is contained in:
Philipp Czora
2018-09-18 15:07:30 +02:00
parent 75767bde69
commit 732a84bb7c
3 changed files with 22 additions and 19 deletions

View File

@@ -10,18 +10,20 @@ class ChangesetTable extends React.Component<Props> {
render() {
const {changesets} = this.props;
return <table className="table is-hoverable is-fullwidth is-striped is-bordered">
<thead>
<tr>
<th>Changesets</th>
</tr>
</thead>
<tbody>
{changesets.map((changeset, index) => {
return <ChangesetRow key={index} changeset={changeset}/>;
})}
</tbody>
</table>
return <div>
<table className="table is-hoverable is-fullwidth is-striped is-bordered">
<thead>
<tr>
<th>Changesets</th>
</tr>
</thead>
<tbody>
{changesets.map((changeset, index) => {
return <ChangesetRow key={index} changeset={changeset}/>;
})}
</tbody>
</table>
</div>
}
}