fix variable Name

This commit is contained in:
Mario
2020-10-16 22:36:43 +02:00
parent e647d6e58e
commit dbebb25b17
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 })
+2 -2
View File
@@ -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 }));
}