Skip to content

Commit

Permalink
Merge pull request #4742 from bcgov/test-marshal-NK-4352
Browse files Browse the repository at this point in the history
allow assignment to processing teams for personal requests before ope…
  • Loading branch information
milosdes authored Nov 22, 2023
2 parents fd81618 + d86e4bb commit 724d628
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { catchError, fnDone} from './foiServicesUtil';
import UserService from "../../../services/UserService";
import { replaceUrl } from "../../../helper/FOI/helper";
import { persistRequestFieldsNotInAxis } from "../../../components/FOI/FOIRequest/utils";
import { StateEnum } from "../../../constants/FOI/statusEnum";

export const fetchFOIRequestList = () => {
return (dispatch) => {
Expand Down Expand Up @@ -178,7 +179,8 @@ export const fetchFOIRawRequestDetails = (requestId) => {
const foiRequest = res.data;
dispatch(clearRequestDetails({}));
dispatch(setFOIRequestDetail(foiRequest));
dispatch(fetchFOIAssignedToList(foiRequest.requestType.toLowerCase(), foiRequest.currentState.replace(/\s/g, '').toLowerCase(), ""));
const ministryCode = (foiRequest.currentState !== StateEnum.redirect.name && foiRequest.requestType === 'personal') ? foiRequest.selectedMinistries[0].code.toLowerCase() : "";
dispatch(fetchFOIAssignedToList(foiRequest.requestType.toLowerCase(), foiRequest.currentState.replace(/\s/g, '').toLowerCase(), ministryCode));
dispatch(fetchFOIProcessingTeamList(foiRequest.requestType.toLowerCase()));
dispatch(setFOILoader(false));
} else {
Expand Down

0 comments on commit 724d628

Please sign in to comment.