Skip to content

Commit

Permalink
fix issue where mock collections error with no config
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkneen committed May 12, 2017
1 parent f655bcf commit 847f6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reste.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ var main = function() {
var body, onError;

// if this is a collection, get the data and complete
if (model instanceof Backbone.Collection) {
if (model instanceof Backbone.Collection && modelConfig && modelConfig.collections) {
var collectionConfig = _.where(modelConfig.collections, {
name: model._name
})[0];
Expand Down

0 comments on commit 847f6e0

Please sign in to comment.