fix variable Name
This commit is contained in:
parent
e647d6e58e
commit
dbebb25b17
@ -54,7 +54,7 @@ class Home extends Component {
|
|||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
||||||
this.props.workspaceName(createNameId());
|
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(res => res.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
this.setState({ projectToLoad: data })
|
this.setState({ projectToLoad: data })
|
||||||
|
@ -116,7 +116,7 @@ class WorkspaceFunc extends Component {
|
|||||||
xml: code
|
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(response => response.json())
|
||||||
.then(data => this.setState({ share: true }));
|
.then(data => this.setState({ share: true }));
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ class WorkspaceFunc extends Component {
|
|||||||
xml: code
|
xml: code
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
fetch(process.env.BLOCKLY_API + '/share', requestOptions)
|
fetch(process.env.REACT_APP_BLOCKLY_API + '/share', requestOptions)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => this.setState({ id: data.id, share: true }));
|
.then(data => this.setState({ id: data.id, share: true }));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user