bugfix 20240111

This commit is contained in:
lb
2024-01-11 16:03:33 +08:00
parent c8d392ce51
commit b16ee86def
17 changed files with 139 additions and 32 deletions

View File

@@ -103,7 +103,12 @@ const SmokeTrendChart = (props) => {
export default SmokeTrendChart;
function getOptions(source, period, trend) {
if (trend[source].length === 0) return null;
if (
trend[source].length === 0 ||
trend[source].filter((item) => item.value).length == 0
)
return null;
return {
color: ["#FFD160", "#12FFF5", "#2760FF"],
grid: {