Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't edit treatment #33

Closed
Matz-a opened this issue Nov 7, 2023 · 1 comment
Closed

can't edit treatment #33

Matz-a opened this issue Nov 7, 2023 · 1 comment

Comments

@Matz-a
Copy link

Matz-a commented Nov 7, 2023

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 added a commit that referenced this issue Nov 7, 2023
@diegopvlk
Copy link
Owner

diegopvlk commented Nov 7, 2023

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

@Matz-a Matz-a closed this as completed Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants