Skip to content

Commit

Permalink
fix: fix the harbor not search in edit (#1814)
Browse files Browse the repository at this point in the history
Signed-off-by: harrisonliu5 <[email protected]>
  • Loading branch information
harrisonliu5 committed Oct 24, 2023
1 parent 9ca9034 commit 77f2b2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ export default class DropdownContent extends React.Component {
constructor(props) {
super(props)
const { imageRegistries } = this.props

const harborData =
this.hubType === 'harbor'
? imageRegistries.find(item => item === this.secretValue)
? imageRegistries.find(item => item.value === this.secretValue)
: {}

this.state = {
Expand Down Expand Up @@ -264,6 +263,7 @@ export default class DropdownContent extends React.Component {

fetchHarborList = async (keyword, harborData) => {
const url = get(harborData, 'url')

if (!url || isEmpty(harborData)) return

this.setState({ isLoading: true })
Expand Down

0 comments on commit 77f2b2f

Please sign in to comment.