From c4e7a3ae894b9905e0a6ad331549228486abaeaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 29 Jul 2016 15:04:51 +0200 Subject: [PATCH] fix(png rendering): another fix for #5606 --- public/app/core/profiler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/core/profiler.ts b/public/app/core/profiler.ts index 6505cd0405f..9b07a1b379d 100644 --- a/public/app/core/profiler.ts +++ b/public/app/core/profiler.ts @@ -101,7 +101,8 @@ export class Profiler { renderingCompleted(panelId, panelTimings) { // add render counter to root scope // used by phantomjs render.js to know when panel has rendered - this.$rootScope.panelsRendered = this.panelsRendered++; + this.panelsRendered = (this.panelsRendered || 0) + 1; + this.$rootScope.panelsRendered = this.panelsRendered; if (this.enabled) { panelTimings.renderEnd = new Date().getTime();