mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
[bugfix] refresh dashboard widget button doesn't work (#878)
This commit is contained in:
committed by
GitHub
parent
aaef338539
commit
82a8e6316f
@@ -52,10 +52,10 @@ function dashboardContainer(dashboardData) {
|
||||
dashboard.slices.forEach((data) => {
|
||||
if (data.error) {
|
||||
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 {
|
||||
const slice = px.Slice(data, dash);
|
||||
$('#slice_' + data.sliceId).find('a.refresh').click(() => {
|
||||
$('#slice_' + data.slice_id).find('a.refresh').click(() => {
|
||||
slice.render(true);
|
||||
});
|
||||
sliceObjects.push(slice);
|
||||
|
||||
Reference in New Issue
Block a user