diff --git a/docs/content.en/docs/release-notes/_index.md b/docs/content.en/docs/release-notes/_index.md index 295d5d57..9816e081 100644 --- a/docs/content.en/docs/release-notes/_index.md +++ b/docs/content.en/docs/release-notes/_index.md @@ -19,6 +19,7 @@ Information about release notes of INFINI Console is provided here. - Fixed the error when querying empty metric data (#144) - Fixed empty host when setup step finishes (#147) - Fixed the error of obtaining suggestions of field's value in discover +- Fixed the wrong display of heatmap's data in alerting message ### Improvements - Update agent config with cluster name (#148) diff --git a/docs/content.zh/docs/release-notes/_index.md b/docs/content.zh/docs/release-notes/_index.md index a6d128f3..bb29436f 100644 --- a/docs/content.zh/docs/release-notes/_index.md +++ b/docs/content.zh/docs/release-notes/_index.md @@ -19,6 +19,7 @@ title: "版本历史" - 修复指标数据为空时的查询错误 (#144) - 修复初始化结束步骤中主机显示为错误的问题 (#147) - 修复数据探索中获取字段值建议的错误 +- 修复告警消息热图数据显示错误的问题 ### Improvements - 优化下发给 Agent 的配置,增加集群名称 (#148) diff --git a/web/src/pages/DataManagement/View/Widget/widgets/calendar-heatmap/Visualization.jsx b/web/src/pages/DataManagement/View/Widget/widgets/calendar-heatmap/Visualization.jsx index b0bf3ce7..64dad943 100644 --- a/web/src/pages/DataManagement/View/Widget/widgets/calendar-heatmap/Visualization.jsx +++ b/web/src/pages/DataManagement/View/Widget/widgets/calendar-heatmap/Visualization.jsx @@ -41,7 +41,7 @@ export default (props) => { to = bounds.max; } if (!from || !to) return data - const newData = cloneDeep(data) + const newData = cloneDeep(data.sort((a, b) => a.timestamp - b.timestamp)) const fromTimestamp = moment(from).valueOf(); const toTimestamp = moment(to).valueOf(); let start = newData[0].timestamp;