From 61717aee95097023fb63f4a199309c69274e036e Mon Sep 17 00:00:00 2001 From: T3cH_W1z4rD <52521300+Aravindha1234u@users.noreply.github.com> Date: Mon, 3 May 2021 19:15:46 +0530 Subject: [PATCH] Fixed XSS (#339) --- src/js/utils/axis-chart-utils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/utils/axis-chart-utils.js b/src/js/utils/axis-chart-utils.js index 4a5828e..2a1a16d 100644 --- a/src/js/utils/axis-chart-utils.js +++ b/src/js/utils/axis-chart-utils.js @@ -34,11 +34,9 @@ export function dataPrep(data, type) { } else { vals = fillArray(vals, datasetLength - vals.length, 0); } + d.values = vals; } - // Set labels - // - // Set type if (!d.chartType) { if (!AXIS_DATASET_CHART_TYPES.includes(type)) type === DEFAULT_AXIS_CHART_TYPE;