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 {
);
}
link = (
let maybeLink;
if (link) {
maybeLink = (
<label htmlFor={ op.id } className="input-group-addon box-transparent">
{ link }
</label>
);
}
return (
<tr className={ rowClassName }>
<td>
......@@ -96,7 +98,7 @@ export default class Operation extends React.Component {
onSelectId={ this.handleSelectType }
/>
</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>
<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