Skip to content

Commit

Permalink
fix noResults state
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme committed Oct 29, 2020
1 parent a7d06e8 commit e1d44f4
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: object[] = visData?.rows ?? [];
const rows = visData?.rows;
const isZeroHits = visData?.hits === 0 || (rows && !rows.length);

return Boolean(isZeroHits);
Expand Down

0 comments on commit e1d44f4

Please sign in to comment.