Skip to content

Commit

Permalink
[bugfix] refresh dashboard widget button doesn't work (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Aug 3, 2016
1 parent aaef338 commit 82a8e63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caravel/assets/javascripts/dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 82a8e63

Please sign in to comment.