From f3fa435a1b35c2ada4cd9a81744a41904fe97909 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Thu, 28 Apr 2016 16:29:13 -0400
Subject: Fixing slack import. (#2819)

---
 webapp/components/team_import_tab.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'webapp/components/team_import_tab.jsx')

diff --git a/webapp/components/team_import_tab.jsx b/webapp/components/team_import_tab.jsx
index 03d35bb3f..782273c5a 100644
--- a/webapp/components/team_import_tab.jsx
+++ b/webapp/components/team_import_tab.jsx
@@ -33,8 +33,8 @@ class TeamImportTab extends React.Component {
         this.setState({status: 'fail', link: ''});
     }
 
-    onImportSuccess(data) {
-        this.setState({status: 'done', link: 'data:application/octet-stream;charset=utf-8,' + encodeURIComponent(data)});
+    onImportSuccess(data, res) {
+        this.setState({status: 'done', link: 'data:application/octet-stream;charset=utf-8,' + encodeURIComponent(res.text)});
     }
 
     doImportSlack(file) {
@@ -167,4 +167,4 @@ TeamImportTab.propTypes = {
     intl: intlShape.isRequired
 };
 
-export default injectIntl(TeamImportTab);
\ No newline at end of file
+export default injectIntl(TeamImportTab);
-- 
cgit v1.2.3-1-g7c22

