diff --git a/public/app/features/dashboard/components/Inspector/InspectStatsTab.tsx b/public/app/features/dashboard/components/Inspector/InspectStatsTab.tsx index c487181cf42..3e64aedf469 100644 --- a/public/app/features/dashboard/components/Inspector/InspectStatsTab.tsx +++ b/public/app/features/dashboard/components/Inspector/InspectStatsTab.tsx @@ -23,8 +23,12 @@ export const InspectStatsTab: React.FC = ({ data, dashboar dataRows += frame.length; } - stats.push({ displayName: 'Total request time', value: requestTime, unit: 'ms' }); - stats.push({ displayName: 'Data processing time', value: processingTime, unit: 'ms' }); + if (requestTime > 0) { + stats.push({ displayName: 'Total request time', value: requestTime, unit: 'ms' }); + } + if (processingTime > 0) { + stats.push({ displayName: 'Data processing time', value: processingTime, unit: 'ms' }); + } stats.push({ displayName: 'Number of queries', value: data.request.targets.length }); stats.push({ displayName: 'Total number rows', value: dataRows });