Skip to content

Commit

Permalink
Fix: Can't create the config (#759)
Browse files Browse the repository at this point in the history
Signed-off-by: barnettZQG <[email protected]>
  • Loading branch information
barnettZQG authored Apr 12, 2023
1 parent e3491b2 commit c0bdfa4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/velaux-ui/src/extends/HelmRepoSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class HelmRepoSelect extends Component<Props, State> {
const { project } = this.props;
const defaultRepos = [{ url: 'https://charts.bitnami.com/bitnami', type: 'helm' }];
this.setState({ loading: true, repos: repoType === 'helm' ? defaultRepos : [] });
console.log(repoType);
getChartRepos({ project: project }).then((res) => {
let repos: HelmRepo[] = [];
if (res && res.repos) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ class AppDialog extends React.Component<Props, State> {
const FormItem = Form.Item;
const { Row, Col } = Grid;
const { visible, setVisible, dispatch, projects, onClose, isDisableProject, userInfo } = this.props;
console.log(this.field);
const { definitionDetail, dialogStats, envs, visibleEnvDialog } = this.state;
const validator = (rule: Rule, value: any, callback: (error?: string) => void) => {
this.uiSchemaRef.current?.validate(callback);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ class CreateConfigDialog extends React.Component<Props, State> {
this.props.onSuccess();
},
});
} else {
this.props.onSuccess();
}
}
})
Expand Down Expand Up @@ -321,7 +323,7 @@ class CreateConfigDialog extends React.Component<Props, State> {
</Col>
</Row>

<If condition={project && !template}>
{project && !template && (
<Row>
<Col span={24} style={{ padding: '0 8px' }}>
<FormItem required label={<Translation>Template</Translation>}>
Expand Down Expand Up @@ -354,7 +356,7 @@ class CreateConfigDialog extends React.Component<Props, State> {
</FormItem>
</Col>
</Row>
</If>
)}
<Row>
<Col span={24} style={{ padding: '0 8px' }}>
<Loading visible={templateLoading} style={{ width: '100%' }}>
Expand Down
1 change: 0 additions & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ func (s *restServer) proxyDexService(res http.ResponseWriter, req *http.Request)
director := func(req *http.Request) {
req.URL.Scheme = u.Scheme
req.URL.Host = u.Host
req.URL.Path = strings.Replace(req.URL.Path, DexRoutePath, "", 1)
}
dexProxy := &httputil.ReverseProxy{Director: director}
dexProxy.ServeHTTP(res, req)
Expand Down

0 comments on commit c0bdfa4

Please sign in to comment.