in components/src/base-configuration/base-configuration.js [102:123]
async loadYouTrackList() {
const {
selectedYouTrack,
selectedReport
} = this.state;
const youTracks = await ServiceResources.getYouTrackServices(
this.props.dashboardApi, this.props.youTrackMinVersion
);
const selectedYouTrackWithAllFields = youTracks.filter(
yt => yt.id === (selectedYouTrack || {}).id
)[0];
if (selectedYouTrackWithAllFields) {
this.setState({
youTracks, selectedYouTrack: selectedYouTrackWithAllFields
}, () => this.setSelectedReport(selectedReport));
} else {
this.setState({
connectionError: i18n('Failed to find proper YouTrack installation')
});
}
}