fix: name.replace exception
This commit is contained in:
parent
ecfc069cbd
commit
a22db61492
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "frappe-charts",
|
||||
"version": "1.5.5",
|
||||
"version": "1.5.6",
|
||||
"description": "https://frappe.github.io/charts",
|
||||
"main": "dist/frappe-charts.min.cjs.js",
|
||||
"module": "dist/frappe-charts.min.esm.js",
|
||||
|
||||
@ -110,7 +110,7 @@ export default class AxisChart extends BaseChart {
|
||||
let values = d.values;
|
||||
let cumulativeYs = d.cumulativeYs || [];
|
||||
return {
|
||||
name: d.name.replace(/<|>|&/g, (char) => char == '&' ? '&' : char == '<' ? '<' : '>'),
|
||||
name: d.name && d.name.replace(/<|>|&/g, (char) => char == '&' ? '&' : char == '<' ? '<' : '>'),
|
||||
index: i,
|
||||
chartType: d.chartType,
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ import * as Charts from './chart';
|
||||
let frappe = { };
|
||||
|
||||
frappe.NAME = 'Frappe Charts';
|
||||
frappe.VERSION = '1.5.5';
|
||||
frappe.VERSION = '1.5.6';
|
||||
|
||||
frappe = Object.assign({ }, frappe, Charts);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user