Skip to content

Commit

Permalink
Fix server types page not passing repo options data. (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouder authored Nov 26, 2024
1 parent 9392e7e commit 8a2dde1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
14 changes: 7 additions & 7 deletions jhub_apps/static/js/index.js

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions ui/src/components/app-form/app-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,6 @@ export const AppForm = ({
: undefined,
};

// Add repository details only if it's a Git-based app
if (deployOption === 'git') {
payload.repository = { url: gitUrl };
}

setCurrentFormInput(payload);
navigate(`/server-types${id ? `?id=${id}` : ''}`);
} else {
Expand Down
1 change: 1 addition & 0 deletions ui/src/pages/server-types/server-types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const ServerTypes = (): React.ReactElement => {
groups: currentFormInput?.share_with?.groups || [],
},
keep_alive: currentFormInput?.keep_alive || false,
repository: currentFormInput?.repository || undefined,
},
};
setSubmitting(true);
Expand Down

0 comments on commit 8a2dde1

Please sign in to comment.