fetchQualityGates({ organization: component.organization }),
getGateForProject({ organization: component.organization, project: component.key })
]).then(
- ([{ qualitygates: allGates }, gate]) => {
+ ([qualityGateList, gate]) => {
if (this.mounted) {
- this.setState({ allGates, gate, loading: false });
+ this.setState({
+ allGates: qualityGateList?.qualitygates,
+ gate,
+ loading: false
+ });
}
},
() => {
optionClassName?: string;
organization?: { key: string };
- getFacetValueForOption?: (facet: Facet, option: Option) => void;
+ getFacetValueForOption?: (facet: Facet, option: Option) => number;
halfWidth?: boolean;
highlightUnder?: number;