Skip to content

Commit

Permalink
fix: Fix image search error
Browse files Browse the repository at this point in the history
  • Loading branch information
leoliu committed Jun 10, 2020
1 parent 225f644 commit a056191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ export default class ContainerSetting extends React.Component {
)

renderImageForm = () => {
const { cluster, namespace } = this.props
const { data, cluster, namespace } = this.props
return (
<ImageSearch
name="image"
cluster={cluster}
namespace={namespace}
className={styles.imageSearch}
formTemplate={this.props.data}
formTemplate={data}
imageRegistries={this.imageRegistries}
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ export default class ContaineForm extends React.Component {
render() {
const {
className,
data,
configMaps,
secrets,
cluster,
Expand All @@ -183,7 +182,7 @@ export default class ContaineForm extends React.Component {
</div>
<Form ref={this.formRef} data={formData}>
<ContainerSetting
data={data}
data={formData}
cluster={cluster}
namespace={namespace}
defaultContainerType={containerType}
Expand Down

0 comments on commit a056191

Please sign in to comment.