Skip to content

Commit

Permalink
Fix LaunchPlan filter
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Casares Crespo <pabloc@spotify.com>
  • Loading branch information
pablocasares committed Apr 23, 2024
1 parent 7bf5a25 commit 94df6c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/oss-console/src/components/Entities/EntityInputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import styled from '@mui/system/styled';
import CheckIcon from '@mui/icons-material/Check';
import ExpandLess from '@mui/icons-material/ExpandLess';
import ExpandMore from '@mui/icons-material/ExpandMore';
import { executionSortFields } from '../../models/Execution/constants';
import { SortDirection } from '@clients/common/types/adminEntityTypes';
import { FilterOperationName } from '@clients/common/types/adminEntityTypes';
import { useLaunchPlans } from '../hooks/useLaunchPlans';
import { formatType, getInputDefintionForLiteralType } from '../Launch/LaunchForm/utils';
Expand Down Expand Up @@ -69,6 +71,11 @@ interface Input {
export const EntityInputs: React.FC<{
id: ResourceIdentifier;
}> = ({ id }) => {
const sort = {
key: executionSortFields.createdAt,
direction: SortDirection.DESCENDING,
};

const launchPlanState = useLaunchPlans(
{ project: id.project, domain: id.domain },
{
Expand All @@ -80,6 +87,7 @@ export const EntityInputs: React.FC<{
value: id.name,
},
],
sort,
},
);

Expand Down

0 comments on commit 94df6c2

Please sign in to comment.