fixing sources-add function

the params were being sent as a nested function.
This commit is contained in:
Jared Tabor 2017-04-20 12:34:47 -07:00 committed by Jared Tabor
parent e58e593140
commit cca8f13a2f

View File

@ -108,7 +108,7 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
// // and pass the related endpoint
// _.assign(params, { group: res.data.id }), res.data.related.inventory_source))
// .then(res => $state.go('inventoryManage.editGroup', { group_id: res.data.group }, { reload: true }));
SourcesService.post({params}).then(function(){
SourcesService.post(params).then(function(){
$state.go('.', null, {reload: true});
});
// break;