diff --git a/core/frontend/src/views/chart/chart/util.js b/core/frontend/src/views/chart/chart/util.js index 08bd5d2af8..7137f276cc 100644 --- a/core/frontend/src/views/chart/chart/util.js +++ b/core/frontend/src/views/chart/chart/util.js @@ -3923,3 +3923,10 @@ export function handleTableEmptyStrategy(tableData, chart) { } return newData } + +export function parseJson(target) { + if (Object.prototype.toString.call(target) === '[object String]') { + return JSON.parse(target) + } + return JSON.parse(JSON.stringify(target)) +} diff --git a/core/frontend/src/views/chart/components/senior/dialog/TableThresholdEdit.vue b/core/frontend/src/views/chart/components/senior/dialog/TableThresholdEdit.vue index 374e572458..70ee0922d0 100644 --- a/core/frontend/src/views/chart/components/senior/dialog/TableThresholdEdit.vue +++ b/core/frontend/src/views/chart/components/senior/dialog/TableThresholdEdit.vue @@ -393,6 +393,7 @@