Commit 3db1a35a authored by ZeHiro's avatar ZeHiro
Browse files

Fix operation display when there is no link to an operation

parent 23c1c146
...@@ -76,12 +76,14 @@ export default class Operation extends React.Component { ...@@ -76,12 +76,14 @@ export default class Operation extends React.Component {
); );
} }
link = ( let maybeLink;
<label htmlFor={ op.id } className="input-group-addon box-transparent"> if (link) {
{ link } maybeLink = (
</label> <label htmlFor={ op.id } className="input-group-addon box-transparent">
); { link }
</label>
);
}
return ( return (
<tr className={ rowClassName }> <tr className={ rowClassName }>
<td> <td>
...@@ -96,7 +98,7 @@ export default class Operation extends React.Component { ...@@ -96,7 +98,7 @@ export default class Operation extends React.Component {
onSelectId={ this.handleSelectType } onSelectId={ this.handleSelectType }
/> />
</td> </td>
<td><OperationListViewLabel operation={ op } link={ link } /></td> <td><OperationListViewLabel operation={ op } link={ maybeLink } /></td>
<td className="text-right">{ this.props.formatCurrency(op.amount) }</td> <td className="text-right">{ this.props.formatCurrency(op.amount) }</td>
<td> <td>
<CategorySelect <CategorySelect
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment