Fixes #3242 - Reporting does not update ticket list when the ticket count is the same (frontend cache bug).

This commit is contained in:
Rolf Schmidt 2020-10-08 14:16:44 +02:00 committed by Thorsten Eckel
parent b9755a4956
commit 87d55bdfed

View file

@ -117,11 +117,11 @@ class Graph extends App.ControllerContent
dataNew[key] = value
@ui.storeParams()
if !@lastNewData
@lastNewData = {}
if !@lastParams
@lastParams = {}
return if @lastNewData && JSON.stringify(dataNew) is JSON.stringify(@lastNewData)
@lastNewData = dataNew
return if @lastParams && JSON.stringify(@params) is JSON.stringify(@lastParams)
@lastParams = $.extend(true, {}, @params)
@draw(dataNew)
t = new Date