fix: page break in Services overview tab (#3749)

* fix: null check

* fix: metrics check is updated
This commit is contained in:
Palash Gupta 2023-11-06 12:16:15 +05:30 committed by GitHub
parent 3e65543b5f
commit dda01678e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ function ApDexMetrics({
const isQueryEnabled =
topLevelOperationsRoute.length > 0 &&
metricsBuckets &&
!!metricsBuckets &&
metricsBuckets?.length > 0 &&
delta !== undefined;

View File

@ -24,7 +24,7 @@ function ApDexMetricsApplication({
<ApDexMetrics
handleGraphClick={handleGraphClick}
delta={data?.data.delta}
metricsBuckets={data?.data.le}
metricsBuckets={data?.data.le || []}
onDragSelect={onDragSelect}
topLevelOperationsRoute={topLevelOperationsRoute}
tagFilterItems={tagFilterItems}

View File

@ -10,5 +10,5 @@ export interface SetApDexPayloadProps {
export interface MetricMetaProps {
delta: boolean;
le: number[];
le: number[] | null;
}