file not being used anywhere

This commit is contained in:
Riley Davis
2016-12-15 10:44:20 -07:00
parent 0892996be0
commit d599a65c05
2 changed files with 1 additions and 19 deletions
-16
View File
@@ -1,16 +0,0 @@
import * as actions from '../constants/assets';
import coralApi from '../helpers/response';
import {addItem} from './items';
export const fetchMulitpleAssets = ids => {
return dispatch => {
dispatch({type: actions.MULTIPLE_ASSETS_REQUEST});
coralApi(`/assets/multi?ids=${encodeURIComponent(ids.join(','))}`)
.then(assets => {
assets.forEach(asset => dispatch(addItem(asset, 'assets')));
dispatch({type: actions.MULTIPLE_ASSETS_SUCCESS, assets: assets.map(asset => asset.id)});
})
.catch(error => dispatch({type: actions.MULTIPLE_ASSSETS_FAILURE, error}));
};
};
@@ -2,7 +2,6 @@ import React, {Component} from 'react';
import {connect} from 'react-redux';
import {saveBio, fetchCommentsByUserId} from 'coral-framework/actions/user';
import {fetchMulitpleAssets} from 'coral-framework/actions/assets';
import BioContainer from './BioContainer';
import NotLoggedIn from '../components/NotLoggedIn';
@@ -66,8 +65,7 @@ const mapStateToProps = state => ({
const mapDispatchToProps = dispatch => ({
saveBio: (user_id, formData) => dispatch(saveBio(user_id, formData)),
fetchCommentsByUserId: userId => dispatch(fetchCommentsByUserId(userId)),
fetchMulitpleAssets: assetIds => dispatch(fetchMulitpleAssets(assetIds))
fetchCommentsByUserId: userId => dispatch(fetchCommentsByUserId(userId))
});
export default connect(