Skip to content
Snippets Groups Projects
Commit 42098e32 authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

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.
parent 755f22a5
Branches
Tags
No related merge requests found
...@@ -275,7 +275,7 @@ export default React.createClass({ ...@@ -275,7 +275,7 @@ export default React.createClass({
else if (isMsg && client.msg_url) { else if (isMsg && client.msg_url) {
link = client.msg_url(this.state.entity); link = client.msg_url(this.state.entity);
} }
if (!link) return <div key={ client.name }/>; if (!link) return null;
return ( return (
<div key={ client.name } className="mxt_HomePage_link"> <div key={ client.name } className="mxt_HomePage_link">
...@@ -314,7 +314,7 @@ export default React.createClass({ ...@@ -314,7 +314,7 @@ export default React.createClass({
else if (isMsg && client.msg_instructions) { else if (isMsg && client.msg_instructions) {
instructions = client.msg_instructions(this.state.entity); instructions = client.msg_instructions(this.state.entity);
} }
if (!instructions) return <div key={ client.name } />; if (!instructions) return null;
return ( return (
<div key={ client.name } className="mxt_HomePage_link"> <div key={ client.name } className="mxt_HomePage_link">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment