Fix formatting of user links

For links to users, some of the rows in the table are missing; but we were
rendering empty `<div>s` which were messing up the table. We shouldn't return
anything here.
This commit is contained in:
Richard van der Hoff 2016-09-19 15:49:17 +01:00
parent 755f22a572
commit 42098e3215

View file

@ -275,7 +275,7 @@ export default React.createClass({
else if (isMsg && client.msg_url) {
link = client.msg_url(this.state.entity);
}
if (!link) return <div key={ client.name }/>;
if (!link) return null;
return (
<div key={ client.name } className="mxt_HomePage_link">
@ -314,7 +314,7 @@ export default React.createClass({
else if (isMsg && client.msg_instructions) {
instructions = client.msg_instructions(this.state.entity);
}
if (!instructions) return <div key={ client.name } />;
if (!instructions) return null;
return (
<div key={ client.name } className="mxt_HomePage_link">