mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
curated studios endpoint doesn't pass unnecessary token to api
This commit is contained in:
parent
7cc2f61a2b
commit
a60da11f8a
2 changed files with 3 additions and 4 deletions
|
@ -404,11 +404,10 @@ module.exports.getProjectStudios = id => (dispatch => {
|
|||
});
|
||||
});
|
||||
|
||||
module.exports.getCuratedStudios = (username, token) => (dispatch => {
|
||||
module.exports.getCuratedStudios = (username) => (dispatch => {
|
||||
dispatch(module.exports.setFetchStatus('curatedStudios', module.exports.Status.FETCHING));
|
||||
api({
|
||||
uri: `/users/${username}/studios/curate`,
|
||||
authentication: token
|
||||
uri: `/users/${username}/studios/curate`
|
||||
}, (err, body, res) => {
|
||||
if (err) {
|
||||
dispatch(module.exports.setFetchStatus('curatedStudios', module.exports.Status.ERROR));
|
||||
|
|
|
@ -76,7 +76,7 @@ class Preview extends React.Component {
|
|||
this.props.getProjectInfo(this.state.projectId, token);
|
||||
this.props.getRemixes(this.state.projectId, token);
|
||||
this.props.getProjectStudios(this.state.projectId, token);
|
||||
this.props.getCuratedStudios(username, token);
|
||||
this.props.getCuratedStudios(username);
|
||||
this.props.getFavedStatus(this.state.projectId, username, token);
|
||||
this.props.getLovedStatus(this.state.projectId, username, token);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue