diegopvlk / Dosage

Medication tracker for Linux
GNU General Public License v3.0
87 stars 15 forks source link

can't edit treatment #33

Closed Matz-a closed 1 year ago

Matz-a commented 1 year ago

upon clickon on a specific treatment I receive this error in the terminal:

(io.github.diegopvlk.Dosage:2): Gjs-CRITICAL **: 15:09:11.392: JS ERROR: TypeError: info.recurring is undefined
_openMedWindow@resource:///io/github/diegopvlk/Dosage/js/window.js:801:26
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

i could not replicate the issue, creating a new treatment works and I am able to edit that one

diegopvlk commented 1 year ago

Sorry about that. Should be fixed in version 1.1.5.

If you don't want to wait for it, you can edit the treatment manually in ~/.var/app/io.github.diegopvlk.Dosage/data/dosage-treatments.json and adding "recurring":{"enabled":false,"interval":5} inside "_info" of the problematic treatment.

It's a bit hard to read since the file is minified, so you'll probably need something like Unminify