From 160a0535fbc99a63a28d6553ece18200d8f44d88 Mon Sep 17 00:00:00 2001 From: Matt Vickers Date: Tue, 7 Nov 2023 09:03:19 -0600 Subject: [PATCH] Fill DataSeries with mismatched data sets so all DataSeries have matching data structures --- .../polaris-viz/src/utilities/fillMissingDataPoints.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/polaris-viz/src/utilities/fillMissingDataPoints.ts b/packages/polaris-viz/src/utilities/fillMissingDataPoints.ts index 2c5f3f6123..b56f2a26ee 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}} = {};