|
@@ -3,7 +3,7 @@ import ReactSelect from 'react-select';
|
|
|
import debounce from 'lodash/debounce';
|
|
|
|
|
|
import {addErrorMessage} from 'sentry/actionCreators/indicator';
|
|
|
-import {Client} from 'sentry/api';
|
|
|
+import {Client, ResponseMeta} from 'sentry/api';
|
|
|
import {t} from 'sentry/locale';
|
|
|
import getXhrErrorResponseHandler from 'sentry/utils/handleXhrErrorResponse';
|
|
|
|
|
@@ -91,7 +91,7 @@ class SelectAsyncControl extends Component<SelectAsyncControlProps> {
|
|
|
const {onResults} = this.props;
|
|
|
return typeof onResults === 'function' ? onResults(resp) : resp;
|
|
|
},
|
|
|
- err => {
|
|
|
+ (err: ResponseMeta) => {
|
|
|
addErrorMessage(t('There was a problem with the request.'));
|
|
|
getXhrErrorResponseHandler('SelectAsync failed')(err);
|
|
|
// eslint-disable-next-line no-console
|