Skip to content

Commit c80c5ec

Browse files
Merge branch 'dev' into QA-Fixes
1 parent 6e4e472 commit c80c5ec

File tree

2 files changed

+4
-1
lines changed
  • src/ui/layouts
    • secrets/RegisterSecret/Register
    • stackComponents/ConfigureComponent/CreateComponent

2 files changed

+4
-1
lines changed

src/ui/layouts/secrets/RegisterSecret/Register/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export const Register: React.FC<Props> = (state: any) => {
191191
updatedRouteState.state.inputData[
192192
state.state.secretKey
193193
] = `{{ ${secretName}.${inputFields[0].key} }}`;
194-
194+
updatedRouteState.state.secretId = id;
195195
history.push(state.state.pathName, updatedRouteState);
196196
} else if (state?.state?.routeFromEditComponent) {
197197
const updatedRouteState = {
@@ -201,6 +201,7 @@ export const Register: React.FC<Props> = (state: any) => {
201201
state.state.secretKey
202202
] = `{{ ${secretName}.${inputFields[0].key} }}`;
203203

204+
updatedRouteState.state.secretId = id;
204205
history.push(state.state.pathName, updatedRouteState);
205206
} else {
206207
history.push(routePaths.secret.configuration(id, selectedWorkspace));

src/ui/layouts/stackComponents/ConfigureComponent/CreateComponent/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,8 @@ export const CreateComponent: React.FC<{ flavor: any; state: any }> = ({
507507
);
508508
} else {
509509
const state = {
510+
secretId: secretId,
511+
secretIdArray: secretIdArray,
510512
flavor: flavor.name,
511513
routeFromComponent: true,
512514
componentName: componentName,

0 commit comments

Comments
 (0)