diff --git a/src/extends/ImageSecretSelect/index.tsx b/src/extends/ImageSecretSelect/index.tsx index 56724a8a1..f914cee27 100644 --- a/src/extends/ImageSecretSelect/index.tsx +++ b/src/extends/ImageSecretSelect/index.tsx @@ -73,7 +73,7 @@ class ImageSecretSelect extends Component { render() { const { disabled, onChange, value } = this.props; const { registries, loading, inputRepo } = this.state; - const dataSource = registries; + const dataSource = registries || []; if (inputRepo) { dataSource.unshift({ secretName: inputRepo, name: inputRepo }); }