[bugfix] refresh dashboard widget button doesn't work (#878)

This commit is contained in:
Maxime Beauchemin 2016-08-03 15:44:10 -07:00 committed by GitHub
parent aaef338539
commit 82a8e6316f
1 changed files with 2 additions and 2 deletions

View File

@ -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);