diff --git a/x-pack/examples/third_party_vis_lens_example/public/visualization.tsx b/x-pack/examples/third_party_vis_lens_example/public/visualization.tsx index e7a6c60ad5b2e..a1796eee9b253 100644 --- a/x-pack/examples/third_party_vis_lens_example/public/visualization.tsx +++ b/x-pack/examples/third_party_vis_lens_example/public/visualization.tsx @@ -75,7 +75,7 @@ export const getRotatingNumberVisualization = ({ }, getSuggestions: ({ state, table }) => { - if (table.columns.length > 1) { + if (!table.columns.length || table.columns.length > 1) { return []; } if (state && table.changeType === 'unchanged') {