Skip to content

Commit 9c9b705

Browse files
authored
Merge pull request #429 from rjgoldsborough/eget-not-function-428
adding check to make sure model.get is function
2 parents c3895e3 + 6363f3f commit 9c9b705

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/routes/crate.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export default Ember.Route.extend({
1010
},
1111

1212
afterModel(model) {
13-
this.setHeadTags(model);
13+
if (typeof model.get === 'function') {
14+
this.setHeadTags(model);
15+
}
1416
},
1517

1618
setHeadTags(model) {

0 commit comments

Comments
 (0)