CyberCraftInc / vacation_system

Cyber Craft Vacation System
0 stars 0 forks source link

Pending Approval Requests trys to show table when there is no approval requests #64

Closed eleidan closed 8 years ago

eleidan commented 8 years ago

The UI layout is rendered as follows: screenshot from 2015-11-06 16 32 37

The following error appears in JS console:

TypeError: this.availableVacations.findWhere(...) is undefined
eleidan commented 8 years ago

There must be a way to reproduce the bug. Otherwise it is not valid.

eleidan commented 8 years ago

The problem occurs because of late evaluation. It seems that Dashboard view tries to render all the views it owns when teams collection is fetched. As a solution, it may be enough to listen to the last collection in the fetch list, approvalRequests at the moment.

eleidan commented 8 years ago

The issue still remains. Mainly, in Chrome.