Skip to content

Commit

Permalink
Delay interpolation of webhook url template; Galaxy won't exist as a …
Browse files Browse the repository at this point in the history
…configured object necessarily when this is imported.
  • Loading branch information
dannon committed Feb 1, 2018
1 parent 0ac7b78 commit 3b7daec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/galaxy/scripts/mvc/webhooks.js
@@ -1,7 +1,9 @@
import Utils from "utils/utils";

const Webhooks = Backbone.Collection.extend({
url: `${Galaxy.root}api/webhooks`
url: function() {
return `${Galaxy.root}api/webhooks`;
}
});

const WebhookView = Backbone.View.extend({
Expand Down

0 comments on commit 3b7daec

Please sign in to comment.