Skip to content

Commit

Permalink
fix: fix image registry url judgement
Browse files Browse the repository at this point in the history
  • Loading branch information
ymh1028 committed Feb 3, 2020
1 parent c449540 commit cfccddc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ export default class DropdownContent extends React.Component {

handleInputChange = (e, value) => {
if (this.registryUrl) {
this.props.onChange(`${this.registryUrl}${value}`)
const compileValue = this.registryUrl.endsWith('/')
? `${this.registryUrl}${value}`
: `${this.registryUrl}/${value}`
this.props.onChange(compileValue)
return
}
this.props.onChange(value)
Expand Down

0 comments on commit cfccddc

Please sign in to comment.