Skip to content

Commit

Permalink
Load config into state on front-end for individual queues (#12473)
Browse files Browse the repository at this point in the history
* Load config into state on front-end for individual queues

* Remove code comment
  • Loading branch information
lowellrex committed Oct 24, 2019
1 parent 46af3f5 commit ade9e8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/app/queue/QueueActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,10 @@ export const fetchAllAttorneys = () => (dispatch) =>

export const fetchAmaTasksOfUser = (userId, userRole) => (dispatch) =>
ApiUtil.get(`/tasks?user_id=${userId}&role=${userRole}`).
then((resp) => dispatch(onReceiveQueue(extractAppealsAndAmaTasks(resp.body.tasks.data))));
then((resp) => {
dispatch(onReceiveQueue(extractAppealsAndAmaTasks(resp.body.tasks.data)));
dispatch(setQueueConfig(resp.body.queue_config));
});

export const setAppealAttrs = (appealId, attributes) => ({
type: ACTIONS.SET_APPEAL_ATTRS,
Expand Down

0 comments on commit ade9e8d

Please sign in to comment.