mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[bugfix] refresh dashboard widget button doesn't work (#878)
This commit is contained in:
parent
aaef338539
commit
82a8e6316f
@ -52,10 +52,10 @@ function dashboardContainer(dashboardData) {
|
|||||||
dashboard.slices.forEach((data) => {
|
dashboard.slices.forEach((data) => {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
const html = '<div class="alert alert-danger">' + data.error + '</div>';
|
const html = '<div class="alert alert-danger">' + data.error + '</div>';
|
||||||
$('#slice_' + data.sliceId).find('.token').html(html);
|
$('#slice_' + data.slice_id).find('.token').html(html);
|
||||||
} else {
|
} else {
|
||||||
const slice = px.Slice(data, dash);
|
const slice = px.Slice(data, dash);
|
||||||
$('#slice_' + data.sliceId).find('a.refresh').click(() => {
|
$('#slice_' + data.slice_id).find('a.refresh').click(() => {
|
||||||
slice.render(true);
|
slice.render(true);
|
||||||
});
|
});
|
||||||
sliceObjects.push(slice);
|
sliceObjects.push(slice);
|
||||||
|
Loading…
Reference in New Issue
Block a user