controllo data != null

This commit is contained in:
zaccaria.majid
2022-11-23 18:02:01 +01:00
parent 29891f0ab6
commit a11fbd4dd3
+4 -1
View File
@@ -7,7 +7,10 @@
}
else
{
<MP.SPEC.Components.Chart.Doughnut Type="@Chart.Doughnut.ChartType.Doughnut" Data="@Data.ToArray()" BackgroundColor="@colors"></MP.SPEC.Components.Chart.Doughnut>
@if (Data != null)
{
<MP.SPEC.Components.Chart.Doughnut Type="@Chart.Doughnut.ChartType.Doughnut" Data="@Data.ToArray()" BackgroundColor="@colors"></MP.SPEC.Components.Chart.Doughnut>
}
}
</div>
}