We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 769ce26 commit 532a6cdCopy full SHA for 532a6cd
x-pack/platform/plugins/shared/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx
@@ -383,8 +383,8 @@ export class ESGeoGridSource extends AbstractESAggSource implements IMvtVectorSo
383
384
const aggr = esResponse.aggregations?.compositeSplit as AggregationsCompositeAggregate;
385
afterKey = aggr.after_key;
386
- // @ts-expect-error upgrade typescript v5.1.6
387
- if (aggr.buckets.length < gridsPerRequest) {
+
+ if (Array.isArray(aggr.buckets) && aggr.buckets.length < gridsPerRequest) {
388
// Finished because request did not get full resultset back
389
break;
390
}
0 commit comments