diff --git a/src/plugins/vis_type_vislib/public/vis_renderer.tsx b/src/plugins/vis_type_vislib/public/vis_renderer.tsx index 3ab024be1552f..9c697f481e63e 100644 --- a/src/plugins/vis_type_vislib/public/vis_renderer.tsx +++ b/src/plugins/vis_type_vislib/public/vis_renderer.tsx @@ -32,7 +32,7 @@ function shouldShowNoResultsMessage(visData: any, visType: string): boolean { return false; } - const rows = visData?.rows; + const rows: object[] | undefined = visData?.rows; const isZeroHits = visData?.hits === 0 || (rows && !rows.length); return Boolean(isZeroHits);