Skip to content

Commit

Permalink
fix: page break in Services overview tab (#3749)
Browse files Browse the repository at this point in the history
* fix: null check

* fix: metrics check is updated
  • Loading branch information
palashgdev authored Nov 6, 2023
1 parent 3e65543 commit dda0167
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function ApDexMetrics({

const isQueryEnabled =
topLevelOperationsRoute.length > 0 &&
metricsBuckets &&
!!metricsBuckets &&
metricsBuckets?.length > 0 &&
delta !== undefined;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/types/api/metrics/getApDex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export interface SetApDexPayloadProps {

export interface MetricMetaProps {
delta: boolean;
le: number[];
le: number[] | null;
}

0 comments on commit dda0167

Please sign in to comment.