filter device
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<div class="media-body text-left">
|
||||
<h5 style="color: #ffffff">Kwh Consumption</h5>
|
||||
<h3 style="color: #ffffff">
|
||||
{{ topCard?.kwh_consumption.toFixed(1) }} Kwh
|
||||
{{ topCard?.kwh_consumption ? topCard?.kwh_consumption.toFixed(1) : 0 }} Kwh
|
||||
</h3>
|
||||
</div>
|
||||
<div class="align-self-center">
|
||||
|
||||
@@ -195,6 +195,8 @@ export class DetailComponent {
|
||||
.getDashboardTopCard(buildingId)
|
||||
.subscribe((res) => {
|
||||
this.topCard = res.data;
|
||||
console.log(this.topCard);
|
||||
|
||||
});
|
||||
}
|
||||
dataEnergyMonitoringSummary(buildingId) {
|
||||
|
||||
Reference in New Issue
Block a user