From 90751e495765afe236cb4d447908a9a31ca21029 Mon Sep 17 00:00:00 2001 From: nickofthyme Date: Thu, 29 Oct 2020 11:39:09 -0500 Subject: [PATCH] fix type definition --- src/plugins/vis_type_vislib/public/vis_renderer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);