From dbebb25b17b2c70a1c16530950fdf628cab3452a Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 16 Oct 2020 22:36:43 +0200 Subject: [PATCH] fix variable Name --- src/components/Home.js | 2 +- src/components/WorkspaceFunc.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Home.js b/src/components/Home.js index 3b8ed31..9b4b155 100644 --- a/src/components/Home.js +++ b/src/components/Home.js @@ -54,7 +54,7 @@ class Home extends Component { componentDidMount() { this.props.workspaceName(createNameId()); - fetch(process.env.BLOCKLY_API + this.props.location.pathname) + fetch(process.env.REACT_APP_BLOCKLY_API + this.props.location.pathname) .then(res => res.json()) .then((data) => { this.setState({ projectToLoad: data }) diff --git a/src/components/WorkspaceFunc.js b/src/components/WorkspaceFunc.js index 7626bca..fa75369 100644 --- a/src/components/WorkspaceFunc.js +++ b/src/components/WorkspaceFunc.js @@ -116,7 +116,7 @@ class WorkspaceFunc extends Component { xml: code }) }; - fetch(process.env.BLOCKLY_API + '/share' + this.state.id, requestOptions) + fetch(process.env.REACT_APP_BLOCKLY_API + '/share' + this.state.id, requestOptions) .then(response => response.json()) .then(data => this.setState({ share: true })); } @@ -131,7 +131,7 @@ class WorkspaceFunc extends Component { xml: code }) }; - fetch(process.env.BLOCKLY_API + '/share', requestOptions) + fetch(process.env.REACT_APP_BLOCKLY_API + '/share', requestOptions) .then(response => response.json()) .then(data => this.setState({ id: data.id, share: true })); }