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

JS error for empty tasks #317

Closed
jaragunde opened this issue Oct 6, 2016 · 1 comment
Closed

JS error for empty tasks #317

jaragunde opened this issue Oct 6, 2016 · 1 comment

Comments

@jaragunde
Copy link
Member

To reproduce, open any empty date and let it pop an empty task. The following warning will appear in the JS console:

Uncaught TypeError: Cannot read property 'data' of undefined

It also happens when you open a date with a saved task that has the project field empty.

jaragunde added a commit that referenced this issue Nov 14, 2016
Improves code reuse and collaterally fixes the bug, because
setCustomTask checks if the record is undefined before operating with
it.
@jaragunde
Copy link
Member Author

commit bd301782ac72b058123f3b0cffdf97c0b39279dc
Author: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Date:   Mon Nov 14 17:28:55 2016 +0100

    [#317] Reuse setCustomTask to set initial value of project combo

    Improves code reuse and collaterally fixes the bug, because
    setCustomTask checks if the record is undefined before operating with
    it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant