vanguardbackup / vanguard

Open-source backup solution for server and application backup, built by the community for the community.
https://vanguardbackup.com
GNU Affero General Public License v3.0
21 stars 2 forks source link

[Bug]: JS error with charts on /overview #29

Open lewislarsen opened 2 months ago

lewislarsen commented 2 months ago

Contact Details

No response

What happened?

There is an issue with the way charts are displayed on the /overview page that causes an error in the console due to the script implementation.

The issue lies in this part of the code, for both charts.

I haven't had much time to look into it but it shouldn't be too tricky to resolve.

Version

v1.7.1

What browsers are you seeing the problem on?

Firefox

Relevant log output

ncaught TypeError: document.getElementById(...) is null
    createCharts https://app.vanguardbackup.com/overview:1082
    <anonymous> https://app.vanguardbackup.com/overview:1170
    updateTheme https://app.vanguardbackup.com/backup-tasks line 85 > injectedScript:19
    init https://app.vanguardbackup.com/backup-tasks line 85 > injectedScript:22
    kl https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:5
    Ol https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:1
    Ae https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:5
    <anonymous> https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:5
    r https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:5
    n https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:5
    Ml https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:5
    ie https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:5
    Oa https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:85
    t https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:85
    Ca https://app.vanguardbackup.com/livewire/livewire.min.js?id=cc800bf4:85