Skip to content

Commit ca68e52

Browse files
hide last collection datetime when lastheartbeat is undefined
1 parent e216088 commit ca68e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/infra/UsageRecords.vue

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

0 commit comments

Comments
 (0)