Skip to content

Commit e216088

Browse files
handle when lastheartbeat is undefined
1 parent 19f2835 commit e216088

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ui/public/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,6 +1523,7 @@
15231523
"label.networkspeed": "Network speed",
15241524
"label.networktype": "Network type",
15251525
"label.networkwrite": "Network write",
1526+
"label.never": "Never",
15261527
"label.new": "New",
15271528
"label.new.autoscale.vmgroup": "New AutoScaling Group",
15281529
"label.new.instance.group": "New Instance group",

ui/src/views/infra/UsageRecords.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<a-card-grid style="width: 35%; text-align: center; font-size: small;">
8989
<a-statistic
9090
:title="$t('label.lastheartbeat')"
91-
:value="$toLocaleDate(serverStats.lastheartbeat)"
91+
:value="serverStats.lastheartbeat ? $toLocaleDate(serverStats.lastheartbeat) : $t('label.never')"
9292
valueStyle="font-size: medium"
9393
/>
9494
<a-card-meta :description="getTimeSince(serverStats.collectiontime)" />

0 commit comments

Comments
 (0)