Skip to content

Commit

Permalink
Skip fetch if widget data source not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett Smith committed Dec 1, 2016
1 parent 939a0ba commit eb4ec2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion priv/assets/js/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ guild.widget.register("timeseries", function(widget, state) {

var runUpdated = function(run) {
ensureWidgetInit();
guild.data.fetch(guild.widget.runSource(widget, run), update);
var url = guild.widget.runSource(widget, run);
if (url) {
guild.data.fetch(guild.widget.runSource(widget, run), update);
}
};

var ensureWidgetInit = function() {
Expand Down

0 comments on commit eb4ec2e

Please sign in to comment.