Skip to content

Commit

Permalink
fix: recent workflow bug on filtering executions (#264) #patch
Browse files Browse the repository at this point in the history
Signed-off-by: Pianist038801 <steven@union.ai>

Co-authored-by: Pianist038801 <steven@union.ai>
  • Loading branch information
Pianist038801 and Pianist038801 authored Jan 14, 2022
1 parent 6e665d1 commit 0e82355
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/Entities/EntityVersions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const EntityVersions: React.FC<EntityVersionsProps> = ({
}) => {
const { domain, project, resourceType, name } = id;
const styles = useStyles();
const filtersState = useWorkflowExecutionFiltersState();
const sort = {
key: executionSortFields.createdAt,
direction: SortDirection.DESCENDING
Expand All @@ -62,7 +61,7 @@ export const EntityVersions: React.FC<EntityVersionsProps> = ({
{ domain, project },
{
sort,
filter: [...baseFilters, ...filtersState.appliedFilters],
filter: baseFilters,
limit: versionView ? 100 : WorkflowVersionsTablePageSize
}
);
Expand All @@ -78,11 +77,6 @@ export const EntityVersions: React.FC<EntityVersionsProps> = ({
);
}, [project, domain, name, versions]);

/** Don't render component until finish fetching user profile */
if (filtersState.filters[4].status !== 'LOADED') {
return null;
}

return (
<>
{!versionView && (
Expand Down

0 comments on commit 0e82355

Please sign in to comment.