julien-nc / phonetrack

Nextcloud app to create tracking sessions to display phones position in real time and export activity to gpx.
GNU Affero General Public License v3.0
65 stars 6 forks source link

Date filter sometimes won't save when tooltips are active #65

Open iw0nderhow opened 3 weeks ago

iw0nderhow commented 3 weeks ago

Hi!

I have an issue where the date filter works in the front-end, but shows an error in the console and the setting is not saved on the server.

The issue disappears when I disable tooltips. It also does not happen with certain dates, but the specific dates are not reproducible for me.

Here are the console errors I see:

This one happens when I change the date using the buttons:

Uncaught TypeError: undefined has no properties
    vt phonetrack.js:3800
    xt phonetrack.js:3989
    nt phonetrack.js:2503
    zt phonetrack.js:6264
    jQuery 9
    zt phonetrack.js:6259
    <anonymous> phonetrack.js:1024
phonetrack.js:3800:19

This one happens when I change the date using the keyboard in the date input control. It also happens when I already have an "incompatible" date set and try to activate tooltips:

Uncaught TypeError: h is undefined
    vt phonetrack.js:3800
    xt phonetrack.js:3989
    nt phonetrack.js:2503
    zt phonetrack.js:5427
    jQuery 2
phonetrack.js:3800:19

This happens in Phonetrack 0.8.1, Nextcloud 30.0.1, using Firefox 131.0.3 on macOS 15.0.1.