Skip to content

Commit 6a72988

Browse files
#183 update stats on config changes only if not in restore mode
1 parent 14da0fd commit 6a72988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/scripts/data.view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ function initializeDataView() {
124124
viewer.addEventListener('perspective-config-update', event => {
125125
if (!restoringConfig) {
126126
updateConfig();
127+
updateStats();
127128
}
128-
updateStats();
129129
});
130130

131131
// add viewer click handler for cross-filtering
@@ -173,7 +173,7 @@ function restoreConfig(viewConfig) {
173173
logMessage(`restoreConfig(\n${JSON.stringify(viewConfig, null, 2)})`);
174174
viewer.restore(viewConfig);
175175
updateStats();
176-
176+
177177
// clear updating view config flag
178178
restoringConfig = false;
179179
}

0 commit comments

Comments
 (0)