summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-29 16:51:27 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-29 18:09:26 -0400
commit97deda72f0bf1d57420996bf24235085abae7839 (patch)
tree339ba0fa662edd48a46f85a01e5e993bc5621220 /webapp
parent29f4548fea99c2d90ecc866a59fe6a98308b8b40 (diff)
downloadchat-97deda72f0bf1d57420996bf24235085abae7839.tar.gz
chat-97deda72f0bf1d57420996bf24235085abae7839.tar.bz2
chat-97deda72f0bf1d57420996bf24235085abae7839.zip
Fixing Link warning
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/sidebar.jsx4
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 (