File tree 1 file changed +8
-0
lines changed
packages/oss-console/src/components/Entities
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import styled from '@mui/system/styled';
14
14
import CheckIcon from '@mui/icons-material/Check' ;
15
15
import ExpandLess from '@mui/icons-material/ExpandLess' ;
16
16
import ExpandMore from '@mui/icons-material/ExpandMore' ;
17
+ import { executionSortFields } from '../../models/Execution/constants' ;
18
+ import { SortDirection } from '@clients/common/types/adminEntityTypes' ;
17
19
import { FilterOperationName } from '@clients/common/types/adminEntityTypes' ;
18
20
import { useLaunchPlans } from '../hooks/useLaunchPlans' ;
19
21
import { formatType , getInputDefintionForLiteralType } from '../Launch/LaunchForm/utils' ;
@@ -69,6 +71,11 @@ interface Input {
69
71
export const EntityInputs : React . FC < {
70
72
id : ResourceIdentifier ;
71
73
} > = ( { id } ) => {
74
+ const sort = {
75
+ key : executionSortFields . createdAt ,
76
+ direction : SortDirection . DESCENDING ,
77
+ } ;
78
+
72
79
const launchPlanState = useLaunchPlans (
73
80
{ project : id . project , domain : id . domain } ,
74
81
{
@@ -80,6 +87,7 @@ export const EntityInputs: React.FC<{
80
87
value : id . name ,
81
88
} ,
82
89
] ,
90
+ sort,
83
91
} ,
84
92
) ;
85
93
You can’t perform that action at this time.
0 commit comments