Skip to content

Commit

Permalink
Merge pull request #3 from rhurling/patch-1
Browse files Browse the repository at this point in the history
fix usage is not defined
  • Loading branch information
abbasudo authored Jan 30, 2024
2 parents 45d6456 + e615b92 commit 0a3ba8d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions resources/views/livewire/usage-hours.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,6 @@ class="ring-1 ring-gray-900/5 dark:ring-gray-100/10 bg-gray-50 dark:bg-gray-800
return
}
if (usage === undefined && chart) {
chart.destroy()
chart = undefined
return
}
chart.data.labels = labels
chart.data.datasets[0].data = data
chart.options.scales.y.max = this.highest(data)
Expand Down

0 comments on commit 0a3ba8d

Please sign in to comment.