Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- parallel({
- account: (next) => {
- AccountsService.getById(this.props.params.account_id).then( (response) => {
- next(null, response);
- });
- },
- departments: (next) => {
- DepartmentsService.get().then((response) => {
- next(null, response.departments);
- });
- }
- }, (error, new_state) => {
- this.setState(new_state);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement