Skip to content

Commit a048203

Browse files
committed
chore: GlobalVariableOptionType type update
1 parent 7c2b125 commit a048203

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Common/Common.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ export const getGlobalVariables = async ({
555555
)
556556
const variableList = (result ?? [])
557557
.filter((item) => (isCD ? item.stageType !== 'ci' : item.stageType === 'ci'))
558-
.map((variable) => {
558+
.map<GlobalVariableOptionType>((variable) => {
559559
const { name, ...updatedVariable } = variable
560560

561561
return {

src/Common/Types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {
2929
ACTION_STATE,
3030
DEPLOYMENT_WINDOW_TYPE,
3131
DockerConfigOverrideType,
32+
RefVariableType,
3233
SortingOrder,
3334
TaskErrorObj,
3435
VariableTypeFormat,
@@ -1030,4 +1031,5 @@ export interface GlobalVariableDTO {
10301031
export type GlobalVariableOptionType = Omit<GlobalVariableDTO, 'name'> & {
10311032
label: string
10321033
value: string
1034+
variableType: Extract<RefVariableType, RefVariableType.GLOBAL>
10331035
}

0 commit comments

Comments
 (0)