Skip to content

Commit

Permalink
Merge pull request #3689 from rjarry/fix-grid-view
Browse files Browse the repository at this point in the history
Fix broken grid_view
  • Loading branch information
tardyp committed Oct 10, 2017
2 parents 020920f + 037b7e1 commit 656f34f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions www/grid_view/src/module/grid.controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Grid extends Controller
continue
for req in requests
builds = buildsByReqID[req.buildrequestid] ? []
if !isNaN(@result)
if @result? and @result != '' and !isNaN(@result)
i = 0
while i < builds.length
if parseInt(builds[i].results) != parseInt(@result)
Expand All @@ -139,11 +139,7 @@ class Grid extends Controller
i += 1
unless builds.length > 0
continue
if @result? and @result != '' and !isNaN(@result)
if build.results != parseInt(@result)
continue
builder = @builders.get(build.builderid)

builder = @builders.get(builds[0].builderid)
unless @isBuilderDisplayed(builder)
continue
buildersById[builder.builderid] = builder
Expand Down

0 comments on commit 656f34f

Please sign in to comment.