From 970e1849eed36614bdecc654be54f1d33708d979 Mon Sep 17 00:00:00 2001 From: Nicholas Jamieson Date: Fri, 24 Nov 2017 15:28:38 +1000 Subject: [PATCH] fix(log): Move variables. --- source/plugin/log-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/plugin/log-plugin.ts b/source/plugin/log-plugin.ts index c6392b2..4c93941 100644 --- a/source/plugin/log-plugin.ts +++ b/source/plugin/log-plugin.ts @@ -81,9 +81,9 @@ export class LogPlugin extends BasePlugin { const snapshotRef = getSnapshotRef(ref); if (graphRef || snapshotRef) { - const { values, valuesFlushed } = snapshotRef; logger_.groupCollapsed("Subscriber"); if (snapshotRef) { + const { values, valuesFlushed } = snapshotRef; logger_.log("Value count =", values.length + valuesFlushed); if (values.length > 0) { logger_.log("Last value =", values[values.length - 1].value);