Skip to content

Commit

Permalink
Fix: the page crash when input by keyboard (#655)
Browse files Browse the repository at this point in the history
Signed-off-by: barnettZQG <[email protected]>
(cherry picked from commit 604dcf4)

Co-authored-by: barnettZQG <[email protected]>
  • Loading branch information
github-actions[bot] and barnettZQG authored Jan 3, 2023
1 parent 2f68a03 commit 6a0dc8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extends/ImageSecretSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ImageSecretSelect extends Component<Props, State> {
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 });
}
Expand Down

0 comments on commit 6a0dc8c

Please sign in to comment.