Skip to content

Commit

Permalink
Follow up f430093 - Fixes #5138 - Add missing deep dup for comparisons.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfschmidt committed Apr 19, 2024
1 parent 629f0e1 commit 6fa0ae2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/assets/javascripts/app/controllers/report.coffee
Expand Up @@ -354,10 +354,8 @@ class Download extends App.Controller
number:
[ callbackLinkToTicket, callbackTicketTitleAdd ]

if !@table
@table = new App.ControllerTable(params)
else
@table.update(objects: tickets)
@table.releaseController() if @table
@table = new App.ControllerTable(params)

tableUpdate: =>
state = {
Expand All @@ -368,11 +366,10 @@ class Download extends App.Controller
day: @params.day
timeRange: @params.timeRange
profiles: @params.profileSelected
backends: @params.backendSelected
downloadBackendSelected: @params.downloadBackendSelected
}
return if _.isEqual(@lastState, state)
@lastState = state
@lastState = $.extend(true, {}, state)

@ajax(
id: 'report_download'
Expand Down

0 comments on commit 6fa0ae2

Please sign in to comment.