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:
parent
755f22a572
commit
42098e3215
1 changed files with 2 additions and 2 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue