Feature/fix_action_column (#357)

* removing action column.

* adding the action column back in, and making it work.
This commit is contained in:
Dan Funk 2023-07-07 16:02:27 -04:00 committed by GitHub
parent 484b93887e
commit 18ea7510c6
1 changed files with 10 additions and 1 deletions

View File

@ -206,7 +206,8 @@ export default function ProcessInstanceListTable({
const [showAdvancedOptions, setShowAdvancedOptions] =
useState<boolean>(false);
const [withOldestOpenTask, setWithOldestOpenTask] = useState<boolean>(false);
const [withOldestOpenTask, setWithOldestOpenTask] =
useState<boolean>(showActionsColumn);
const [systemReport, setSystemReport] = useState<string | null>(null);
const [selectedUserGroup, setSelectedUserGroup] = useState<string | null>(
null
@ -436,6 +437,14 @@ export default function ProcessInstanceListTable({
});
}
// If the showActionColumn is set to true, we need to include the with_oldest_open_task in the query params
if (showActionsColumn) {
reportMetadataBodyToUse.filter_by.push({
field_name: 'with_oldest_open_task',
field_value: true,
});
}
if (filtersEnabled) {
HttpService.makeCallToBackend({
path: `/user-groups/for-current-user`,