check if watcher is defined before print
parent
c98996a8c5
commit
d41ea2faa6
|
@ -175,6 +175,7 @@ WatchersDirective = ($rootscope, $confirm, $repo) ->
|
||||||
<% }; %>
|
<% }; %>
|
||||||
|
|
||||||
<% _.each(watchers, function(watcher) { %>
|
<% _.each(watchers, function(watcher) { %>
|
||||||
|
<% if(watcher) { %>
|
||||||
<div class="watcher-single">
|
<div class="watcher-single">
|
||||||
<div class="watcher-avatar">
|
<div class="watcher-avatar">
|
||||||
<span class="avatar" href="" title="<%- watcher.full_name_display %>">
|
<span class="avatar" href="" title="<%- watcher.full_name_display %>">
|
||||||
|
@ -191,6 +192,7 @@ WatchersDirective = ($rootscope, $confirm, $repo) ->
|
||||||
<% }; %>
|
<% }; %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<% } %>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
@ -214,6 +216,7 @@ WatchersDirective = ($rootscope, $confirm, $repo) ->
|
||||||
watchers: watchers
|
watchers: watchers
|
||||||
isEditable: isEditable()
|
isEditable: isEditable()
|
||||||
}
|
}
|
||||||
|
|
||||||
html = template(ctx)
|
html = template(ctx)
|
||||||
$el.html(html)
|
$el.html(html)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue