diff --git a/packages/polaris-viz/src/utilities/fillMissingDataPoints.ts b/packages/polaris-viz/src/utilities/fillMissingDataPoints.ts index 2c5f3f612..b56f2a26e 100644 --- a/packages/polaris-viz/src/utilities/fillMissingDataPoints.ts +++ b/packages/polaris-viz/src/utilities/fillMissingDataPoints.ts @@ -1,14 +1,6 @@ import type {DataSeries} from '@shopify/polaris-viz-core'; export function fillMissingDataPoints(dataSeries: DataSeries[]) { - const areAnyDataLengthsDifferent = dataSeries.some( - ({data}) => data.length !== dataSeries[0].data.length, - ); - - if (!areAnyDataLengthsDifferent) { - return dataSeries; - } - const allKeys = new Set(); const dataValueMap: {[key: number]: {[key: string]: number | null}} = {};