Skip to content

Commit

Permalink
fix type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme committed Oct 29, 2020
1 parent e1d44f4 commit 90751e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/vis_type_vislib/public/vis_renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 90751e4

Please sign in to comment.