Skip to content

Commit 67a94de

Browse files
committed
feat(step-addons): import SecretManagerOption type and enhance variable mapping logic in step variables
1 parent f98bdb5 commit 67a94de

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

  • libs/domains
    • clusters/feature/src/lib/cluster-creation-flow/step-addons
    • services/feature/src/lib/service-creation-flow/application-container/application-container-variables/step-variables

libs/domains/clusters/feature/src/lib/cluster-creation-flow/step-addons/step-addons.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ import {
1313
Section,
1414
useModal,
1515
} from '@qovery/shared/ui'
16-
import { SecretManagerIntegrationModal } from '../../secret-manager-modals/secret-manager-integration-modal'
16+
import {
17+
SecretManagerIntegrationModal,
18+
type SecretManagerOption,
19+
} from '../../secret-manager-modals/secret-manager-integration-modal'
1720
import { type ClusterAddonsSecretManager, steps, useClusterContainerCreateContext } from '../cluster-creation-flow'
1821

1922
export interface StepAddonsProps {

libs/domains/services/feature/src/lib/service-creation-flow/application-container/application-container-variables/step-variables/step-variables.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ export function ApplicationContainerStepVariables({ onBack, onSubmit }: Applicat
189189
type={currentVariable?.file ? APIVariableTypeEnum.FILE : APIVariableTypeEnum.VALUE}
190190
isFile={isFile}
191191
variable={
192-
typeof index === 'number' ? mapVariableToModalVariable(currentVariable, index, serviceScope) : undefined
192+
typeof index === 'number' && currentVariable
193+
? mapVariableToModalVariable(currentVariable, index, serviceScope)
194+
: undefined
193195
}
194196
onSubmitLocal={(data) => {
195197
const mapped = mapModalDataToVariable(data, currentVariable)

0 commit comments

Comments
 (0)