can't edit treatment
Closed this issue · 1 comments
Matz-a commented
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
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