Skip to content

Commit

Permalink
Task bugs (AOT-Technologies#1753)
Browse files Browse the repository at this point in the history
* tenant redirect url in task fixed

* undefined issue while loading first time in task fix

* claim and unclaim socket issue fixed

---------

Co-authored-by: AbijithS-aot <[email protected]>
  • Loading branch information
AbijithS-aot and AbijithS-aot authored Nov 21, 2023
1 parent 4314f35 commit 34e65c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 8 additions & 6 deletions forms-flow-web/src/components/ServiceFlow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default React.memo(() => {
);
const bpmTaskId = useSelector((state) => state.bpmTasks.taskId);
const reqData = useSelector((state) => state.bpmTasks.listReqParams);
const selectedFilter = useSelector((state) => state.bpmTasks.selectedFilter);
const sortParams = useSelector(
(state) => state.bpmTasks.filterListSortParams
);
Expand All @@ -67,7 +68,6 @@ export default React.memo(() => {
const cardView = useSelector(
(state) => state.bpmTasks.viewType
);

const redirectUrl = useRef(
MULTITENANCY_ENABLED ? `/tenant/${tenantKey}/` : "/"
);
Expand Down Expand Up @@ -165,9 +165,9 @@ export default React.memo(() => {
if (forceReload) {
dispatch(
fetchServiceTaskList(
selectedBPMFilterParams,
firstResultsRef.current,
refreshedTaskId
selectedFilter,
refreshedTaskId,
firstResultsRef.current
)
); //Refreshes the Tasks
if (bpmTaskIdRef.current && refreshedTaskId === bpmTaskIdRef.current) {
Expand All @@ -187,15 +187,17 @@ export default React.memo(() => {
) {
dispatch(
fetchServiceTaskList(
selectedBPMFilterParams,
selectedFilter,
null,
firstResultsRef.current
)
); //Refreshes the Task
}
} else {
dispatch(
fetchServiceTaskList(
selectedBPMFilterParams,
selectedFilter,
null,
firstResultsRef.current,
)
); //Refreshes the Task
Expand Down
2 changes: 0 additions & 2 deletions forms-flow-web/src/containers/TaskHead.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ function TaskHead() {
setFilterSelectedForEdit={setFilterSelectedForEdit}
/>
</div>


<div >
<button
type="button"
Expand Down

0 comments on commit 34e65c0

Please sign in to comment.