File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ export const getGlobalVariables = async ({
555
555
)
556
556
const variableList = ( result ?? [ ] )
557
557
. filter ( ( item ) => ( isCD ? item . stageType !== 'ci' : item . stageType === 'ci' ) )
558
- . map ( ( variable ) => {
558
+ . map < GlobalVariableOptionType > ( ( variable ) => {
559
559
const { name, ...updatedVariable } = variable
560
560
561
561
return {
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import {
29
29
ACTION_STATE ,
30
30
DEPLOYMENT_WINDOW_TYPE ,
31
31
DockerConfigOverrideType ,
32
+ RefVariableType ,
32
33
SortingOrder ,
33
34
TaskErrorObj ,
34
35
VariableTypeFormat ,
@@ -1030,4 +1031,5 @@ export interface GlobalVariableDTO {
1030
1031
export type GlobalVariableOptionType = Omit < GlobalVariableDTO , 'name' > & {
1031
1032
label : string
1032
1033
value : string
1034
+ variableType : Extract < RefVariableType , RefVariableType . GLOBAL >
1033
1035
}
You can’t perform that action at this time.
0 commit comments