mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
fix world_map appending to old world map when updating (#549)
This commit is contained in:
parent
087c47a37e
commit
849063c797
@ -14,6 +14,7 @@ function worldMapChart(slice) {
|
|||||||
container.css('height', slice.height());
|
container.css('height', slice.height());
|
||||||
|
|
||||||
d3.json(slice.jsonEndpoint(), function (error, json) {
|
d3.json(slice.jsonEndpoint(), function (error, json) {
|
||||||
|
div.selectAll("*").remove();
|
||||||
var fd = json.form_data;
|
var fd = json.form_data;
|
||||||
|
|
||||||
if (error !== null) {
|
if (error !== null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user