diff --git a/packages/console/src/pages/WebhookDetails/index.tsx b/packages/console/src/pages/WebhookDetails/index.tsx index b88179785..eac4feb0a 100644 --- a/packages/console/src/pages/WebhookDetails/index.tsx +++ b/packages/console/src/pages/WebhookDetails/index.tsx @@ -42,6 +42,7 @@ function WebhookDetails() { const { data, error, mutate } = useSWR( id && buildUrl(`api/hooks/${id}`, { includeExecutionStats: String(true) }) ); + const { executionStats } = data ?? {}; const isLoading = !data && !error; const api = useApi(); @@ -113,18 +114,22 @@ function WebhookDetails() {
{data.name}
- {isEnabled ? ( + {isEnabled && executionStats ? (
- - -
+ {executionStats.requestCount > 0 && ( + <> + + +
+ + )}
) : (