Skip to content

Commit 9d32865

Browse files
committed
Ensure model exists before accessing get
1 parent c66f6e2 commit 9d32865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/routes/crate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default Route.extend({
1414
},
1515

1616
afterModel(model) {
17-
if (typeof model.get === 'function') {
17+
if (model && typeof model.get === 'function') {
1818
this.setHeadTags(model);
1919
}
2020
},

0 commit comments

Comments
 (0)