Skip to content

Commit

Permalink
Merge pull request #2163 from AOT-Technologies/Bugfix/FWF-3523-Redire…
Browse files Browse the repository at this point in the history
…cting-to-task-page

FWF-3523 [bugfix] fixed Redirecting to task page
  • Loading branch information
auslin-aot authored Jul 24, 2024
2 parents fd6f690 + ccda3bb commit 9267ec8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export default function CreateNewFilterDrawer({
const [selectedForm, setSelectedForm] = useState(null);
const [taskVariablesKeys, setTaskVariablesKeys] = useState({});
const [processLoading, setProcessLoading] = useState(false);
const loginedUserRoles = useSelector((state) => state.user.roles || []);

const [overlayGroupShow, setOverlayGroupShow] = useState(false);
const [overlayUserShow, setOverlayUserShow] = useState(false);
Expand Down Expand Up @@ -548,15 +549,15 @@ export default function CreateNewFilterDrawer({

const candidateOptions = useMemo(() => {
return MULTITENANCY_ENABLED
? userRoles.map((role) => ({
? loginedUserRoles.map((role) => ({
value: role,
label: role,
}))
: candidateGroups.map((group) => ({
value: trimFirstSlash(group),
label: group,
}));
}, [candidateGroups, userRoles, MULTITENANCY_ENABLED]);
}, [candidateGroups, loginedUserRoles, MULTITENANCY_ENABLED]);

const handleAssignee = (selectedOption) => {
setAssignee(selectedOption ? selectedOption.value : null);
Expand Down

0 comments on commit 9267ec8

Please sign in to comment.