Upgrade repository import api

This commit is contained in:
Eduard Heimbuch
2020-11-23 18:20:48 +01:00
parent c15b0169cb
commit 308b95d8c7
9 changed files with 626 additions and 809 deletions

View File

@@ -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);
}