Skip to content

Commit

Permalink
bugfix chart data double build
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixNazarov committed Oct 23, 2024
1 parent ebd4596 commit cb2ed30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/views/HealthCheck/HealthTargetView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default defineComponent({
},
getChartData() {
const units = this.healthCheckStore.getUnits(this.healthTarget)?.reverse()
if (units == undefined) return
if (units == undefined) return []
return {
labels: units?.map(el => moment(el.request_datetime)),
datasets: [{
Expand Down Expand Up @@ -130,7 +130,7 @@ export default defineComponent({
<p class="ma-1">
Response Times:
</p>
<div style="height: 10rem" v-if="getChartData()">
<div style="height: 10rem">
<Line :data="getChartData()" :options="options"/>
</div>
</VCardText>
Expand Down

0 comments on commit cb2ed30

Please sign in to comment.