Skip to content

Commit 18dc13a

Browse files
#183 use one update stats call for config updates
1 parent 6a72988 commit 18dc13a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/scripts/data.view.js

Lines changed: 3 additions & 3 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();
128-
}
127+
}
128+
updateStats();
129129
});
130130

131131
// add viewer click handler for cross-filtering
@@ -172,7 +172,7 @@ function restoreConfig(viewConfig) {
172172
// restore view config
173173
logMessage(`restoreConfig(\n${JSON.stringify(viewConfig, null, 2)})`);
174174
viewer.restore(viewConfig);
175-
updateStats();
175+
//updateStats();
176176

177177
// clear updating view config flag
178178
restoringConfig = false;

0 commit comments

Comments
 (0)