Fixed XSS (#339)

This commit is contained in:
T3cH_W1z4rD 2021-05-03 19:15:46 +05:30 committed by GitHub
parent 304d23502a
commit 61717aee95

View File

@ -34,11 +34,9 @@ export function dataPrep(data, type) {
} else { } else {
vals = fillArray(vals, datasetLength - vals.length, 0); vals = fillArray(vals, datasetLength - vals.length, 0);
} }
d.values = vals;
} }
// Set labels
//
// Set type // Set type
if (!d.chartType) { if (!d.chartType) {
if (!AXIS_DATASET_CHART_TYPES.includes(type)) type === DEFAULT_AXIS_CHART_TYPE; if (!AXIS_DATASET_CHART_TYPES.includes(type)) type === DEFAULT_AXIS_CHART_TYPE;