From bc8131e161540df0fdfebafdffdfab432d9d3549 Mon Sep 17 00:00:00 2001 From: HuaFangYun <380066935@qq.com> Date: Fri, 20 Oct 2023 16:59:07 +0800 Subject: [PATCH] Update ant-design-charts-blazor.js Column chart reports an error when the data is empty --- src/AntDesign.Charts/wwwroot/ant-design-charts-blazor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AntDesign.Charts/wwwroot/ant-design-charts-blazor.js b/src/AntDesign.Charts/wwwroot/ant-design-charts-blazor.js index 460e116d..759d5ddf 100644 --- a/src/AntDesign.Charts/wwwroot/ant-design-charts-blazor.js +++ b/src/AntDesign.Charts/wwwroot/ant-design-charts-blazor.js @@ -122,7 +122,7 @@ function proccessObject(o) { if (o[attr] === null || o[attr] === undefined) delete o[attr]; else if (typeof o[attr] == 'object') { removeNullItem(o[attr]); - if (isEmptyObj(o[attr])) delete o[attr]; + if (isEmptyObj(o[attr]) && attr!="data") delete o[attr]; } } }