Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed process history bugs #2331

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 196 additions & 0 deletions forms-flow-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions forms-flow-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"react-i18next": "^11.15.3",
"react-js-pagination": "^3.0.3",
"react-loading-overlay-ts": "^1.0.5",
"react-query": "^3.39.3",
"react-redux": "^7.2.4",
"react-router-dom": "^5.1.2",
"react-scripts": "^5.0.1",
Expand Down
10 changes: 5 additions & 5 deletions forms-flow-web/src/apiManager/services/processServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,16 +562,16 @@ export const deleteFormProcessMapper = (mapperId, ...rest) => {
};
};

export const getProcessHistory = (process_key, page = null, limit = null) => {
let url = `${API.GET_PROCESSES_DETAILS}/${process_key}/versions`;
if (page !== null && limit !== null) {
export const getProcessHistory = ({parentProcessKey, page = null, limit = null}) => {
let url = `${API.GET_PROCESSES_DETAILS}/${parentProcessKey}/versions`;
if (page && limit) {
url += `?pageNo=${page}&limit=${limit}`;
}
return RequestService.httpGETRequest(url);
};

export const fetchRevertingProcessData = (process_Id) => {
let url = `${API.GET_PROCESSES_DETAILS}/${process_Id}`;
export const fetchRevertingProcessData = (processId) => {
let url = `${API.GET_PROCESSES_DETAILS}/${processId}`;
return RequestService.httpGETRequest(url);
};

Expand Down
Loading
Loading