watch the variant prop for pi instances list to properly update the contents of the table w/ burnettk (#1069)

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
jasquat 2024-02-20 10:39:23 -05:00 committed by GitHub
parent dbd4d2728c
commit 51b3dc5a35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -446,7 +446,15 @@ export default function ProcessInstanceListTableWithFilters({
};
checkFiltersAndRun();
}, [filtersEnabled, getReportMetadataWithReportHash, permissionsLoaded]);
}, [
filtersEnabled,
getReportMetadataWithReportHash,
permissionsLoaded,
// watch the variant prop so when switching between the "For Me" and "All" pi list tables
// the api call to find the new process instances is made and the report metadata is updated.
variant,
]);
const removeFieldFromReportMetadata = (
reportMetadataToUse: ReportMetadata,