mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
Upgrade repository import api
This commit is contained in:
@@ -42,7 +42,7 @@ class DropDown extends React.Component<Props> {
|
||||
render() {
|
||||
const { options, optionValues, preselectedOption, className, disabled } = this.props;
|
||||
|
||||
if (preselectedOption && options.filter(o => o === preselectedOption).length === 0) {
|
||||
if (preselectedOption && options.some(o => o === preselectedOption)) {
|
||||
options.push(preselectedOption);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user