timekit-io/booking-js

Team Availability example throws an error

Opened this issue · 1 comments

team-availability.htm example throws a following error:

utils.js:29 TimekitBooking Error:  
(3) ["Encountered an error when picking designated team user to receive booking", Object, Array(2)]

main.js:510 Uncaught TypeError: Cannot read property 'then' of undefined

Seems to be caused because items in config.timekitFindTimeTeam.users doesn't contain property _email.

Can you preproduce the error, or does it look like I have missed something? Thanks. :)

@janneleppanen Thanks for letting us know! I've fixed the example now in the latest release.

Note that you need to enter your own emails/apitoken/calendar for your own users in order for it to work (the default is just for example purposes)