I'm getting this error;
Cannot read property '0' of null
(for '0', '1', '2', '3'.....etc.) once for each of the 24 hours in my day. Then again for rows '8', '9','10' and '11' where I have events on the calendar.
This is my Calendar Day View template
<table ui-tree="treeOptions">
<tbody>
<!-- Builds Day View with one <tr> for each hour(24 hrs) in rows model -->
<tr ng-repeat="tm in rows track by $index" ng-model="rows" ui-tree-nodes="">
<td class="calendar-cell" ui-tree-node>
<!-- hourTouch() counts the touch events, once shows <p>Signup</p>, twice -->
<!-- shows <div class="finish-time"> which is my draggable element -->
<!-- tm.events is an array of objects with the event detail properties -->
<div class="add_event_shade"
ng-if="tm.events"
on-touch="hourTouch($event)"
ng-model="tm.events"
ui-tree-nodes="">
<p style="display:none;"
ng-model="volunteerStart">
Signup
</p>
<div class="finish-time"
style="display:none";
ui-tree-node>
Finish: {{ displayEnd}}
</div>
</div>
<div ng-class="{'calendar-event-wrap': tm.events}"
ng-show="tm.events">
<!-- adds events to the calendar day view -->
<div ng-repeat="displayEvent in tm.events"
class="calendar-event"
ng-click="eventSelected({event:displayEvent.event})"
<div class="calendar-event-inner"></div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
in my controller I have the logic described in my html comments and the full set of $scope.treeOptions = { accept, beforeDrag, removed
etc as shown in the docs.
Am I missing something I need to be doing controller side or am I setting the ui-tree attributes wrong on my template?