GersonDias / toggl-buttonVSOExtension

Other
7 stars 11 forks source link

Refresh do not work if no Tags are defined in toggl #7

Open JocPelletier opened 7 years ago

JocPelletier commented 7 years ago

I created a new Toggl account to test this extension and was not able to save my Toggl API key, Refresh button was doing nothing.

Looking at Chrome Console I noticed this error:

Uncaught TypeError: Cannot read property 'forEach' of undefined
    at TogglButtonForm.fillTagsInfo (vsotogglbutton.js:199)
    at Object.success (vsotogglbutton.js:119)
    at j (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at x (jquery.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery.min.js:4)

I created a Tag in toggl and now it work!

GersonDias commented 7 years ago

thanks for you report Joc. It looks like a simple thing to resolve, but probably I'll need to use a newer version of VSS sdk so I need to check the best way to do that. I'll keep you in touch!

basvo commented 5 years ago

Can confirm this issue. No tags in toggl causes this scenario to occur.

cboschmans commented 5 years ago

i had a similar issue with projects and clients not defined in toggle