SearchPane: Remove an existing panel if there is one when rebuilding a pane

pull/409/head
Allan Jardine 6 years ago
parent dc1fcec9f1
commit 5a3c0b2fdc

@ -154,6 +154,16 @@
// Don't show the pane if there isn't enough variance in the data
if (this._variance(bins) < this.c.threshold) {
this
.dom
.container
.children()
.map(function() {
if ($(this).data('column') == idx) {
return this;
}
})
.remove();
return;
}

Loading…
Cancel
Save