diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-03-29 16:51:27 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-03-29 18:09:26 -0400 |
commit | 97deda72f0bf1d57420996bf24235085abae7839 (patch) | |
tree | 339ba0fa662edd48a46f85a01e5e993bc5621220 /webapp/components | |
parent | 29f4548fea99c2d90ecc866a59fe6a98308b8b40 (diff) | |
download | chat-97deda72f0bf1d57420996bf24235085abae7839.tar.gz chat-97deda72f0bf1d57420996bf24235085abae7839.tar.bz2 chat-97deda72f0bf1d57420996bf24235085abae7839.zip |
Fixing Link warning
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/sidebar.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx index bf51fa102..45bca7212 100644 --- a/webapp/components/sidebar.jsx +++ b/webapp/components/sidebar.jsx @@ -440,9 +440,9 @@ export default class Sidebar extends React.Component { let link = ''; if (channel.fake) { - link = TeamStore.getCurrentTeamUrl() + '/channels/' + channel.name + '?fakechannel=' + encodeURIComponent(JSON.stringify(channel)); + link = '/' + this.state.currentTeam.name + '/channels/' + channel.name + '?fakechannel=' + encodeURIComponent(JSON.stringify(channel)); } else { - link = TeamStore.getCurrentTeamUrl() + '/channels/' + channel.name; + link = '/' + this.state.currentTeam.name + '/channels/' + channel.name; } return ( |