[UX App] Fixes empty state (#138976) (#138984)

(cherry picked from commit bf461a6868)

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
This commit is contained in:
Kibana Machine 2022-08-17 07:15:08 -04:00 committed by GitHub
parent f12954223a
commit 95ea149385
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,11 +35,11 @@ export function useClientMetricsQuery() {
);
const data = useMemo(() => {
if (!esQueryResponse) return {};
if (!esQueryResponse?.aggregations) return {};
const {
hasFetchStartField: { backEnd, totalPageLoadDuration },
} = esQueryResponse.aggregations!;
} = esQueryResponse.aggregations;
const pkey = percentile.toFixed(1);