From e1cae3b15b1a85fcb2ef30fee0076ae3a8d23856 Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Fri, 6 May 2016 14:32:08 -0400
Subject: PLT-2600/PLT-2770 Changed getPublicLink api call to return a proper
 JSON string (#2914)

* Removed unused channelId and userId parameters from web client getPublicLink method

* Changed getPublicLink api call to return a proper JSON string
---
 webapp/components/get_public_link_modal.jsx | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

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

diff --git a/webapp/components/get_public_link_modal.jsx b/webapp/components/get_public_link_modal.jsx
index 7f83651cd..c2604b3bc 100644
--- a/webapp/components/get_public_link_modal.jsx
+++ b/webapp/components/get_public_link_modal.jsx
@@ -23,8 +23,6 @@ export default class GetPublicLinkModal extends React.Component {
 
         this.state = {
             show: false,
-            channelId: '',
-            userId: '',
             filename: '',
             link: ''
         };
@@ -36,7 +34,7 @@ export default class GetPublicLinkModal extends React.Component {
 
     componentDidUpdate(prevProps, prevState) {
         if (this.state.show && !prevState.show) {
-            AsyncClient.getPublicLink(this.state.channelId, this.state.userId, this.state.filename, this.handlePublicLink);
+            AsyncClient.getPublicLink(this.state.filename, this.handlePublicLink);
         }
     }
 
@@ -53,8 +51,6 @@ export default class GetPublicLinkModal extends React.Component {
     handleToggle(value, args) {
         this.setState({
             show: value,
-            channelId: args.channelId,
-            userId: args.userId,
             filename: args.filename,
             link: ''
         });
-- 
cgit v1.2.3-1-g7c22

