Skip to content

Commit 94df6c2

Browse files
committed
Fix LaunchPlan filter
Signed-off-by: Pablo Casares Crespo <[email protected]>
1 parent 7bf5a25 commit 94df6c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/oss-console/src/components/Entities/EntityInputs.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import styled from '@mui/system/styled';
1414
import CheckIcon from '@mui/icons-material/Check';
1515
import ExpandLess from '@mui/icons-material/ExpandLess';
1616
import ExpandMore from '@mui/icons-material/ExpandMore';
17+
import { executionSortFields } from '../../models/Execution/constants';
18+
import { SortDirection } from '@clients/common/types/adminEntityTypes';
1719
import { FilterOperationName } from '@clients/common/types/adminEntityTypes';
1820
import { useLaunchPlans } from '../hooks/useLaunchPlans';
1921
import { formatType, getInputDefintionForLiteralType } from '../Launch/LaunchForm/utils';
@@ -69,6 +71,11 @@ interface Input {
6971
export const EntityInputs: React.FC<{
7072
id: ResourceIdentifier;
7173
}> = ({ id }) => {
74+
const sort = {
75+
key: executionSortFields.createdAt,
76+
direction: SortDirection.DESCENDING,
77+
};
78+
7279
const launchPlanState = useLaunchPlans(
7380
{ project: id.project, domain: id.domain },
7481
{
@@ -80,6 +87,7 @@ export const EntityInputs: React.FC<{
8087
value: id.name,
8188
},
8289
],
90+
sort,
8391
},
8492
);
8593

0 commit comments

Comments
 (0)