Skip to content

Commit

Permalink
webdash: fix state filter bug #589
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstruck authored and buchanae committed Jun 13, 2018
1 parent d141edd commit ac93dc1
Show file tree
Hide file tree
Showing 4 changed files with 1,655 additions and 525 deletions.
8 changes: 5 additions & 3 deletions webdash/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ app.service("TaskService", function(CacheFactory, $http, $q, $location) {
// Now, for each task in the minimal view, get the basic view.
// Separating the requests allows tasks to each be cached individually.
var ids = []
for (var i = 0; i < listResponse.tasks.length; i++) {
var id = listResponse.tasks[i].id
ids.push(id)
if (listResponse.tasks) {
for (var i = 0; i < listResponse.tasks.length; i++) {
var id = listResponse.tasks[i].id
ids.push(id)
}
}
return taskSvc.BatchGet(ids, "BASIC").then(function(tasks) {
// Reformat the response to look like a ListTasksResponse.
Expand Down
Loading

0 comments on commit ac93dc1

Please sign in to comment.