bugfix 20240111
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user