Skip to content

Commit

Permalink
Merge pull request #1307 from tisjames/patch-2
Browse files Browse the repository at this point in the history
Dashboard Clickthrough Rates chart needs conditional logic to avoid error due to null table data
  • Loading branch information
ginatrapani committed Apr 10, 2012
2 parents c4ac728 + a5548dd commit ae35b83
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webapp/_lib/view/dashboard.tpl
Expand Up @@ -253,7 +253,10 @@
}
});
hot_posts_chart.draw();
{/literal}
{if $click_stats_data}
{literal}
formatter.format(click_stats_data, 1);
var click_stats_chart = new google.visualization.ChartWrapper({
containerId: 'click_stats',
Expand All @@ -278,7 +281,10 @@
}
});
click_stats_chart.draw();
{/literal}
{/if}
{literal}
formatter.format(follower_count_history_by_day_data, 1);
formatter_date.format(follower_count_history_by_day_data, 0);
Expand Down

0 comments on commit ae35b83

Please sign in to comment.