We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b0b64c commit e972491Copy full SHA for e972491
lib/route/response.js
@@ -15,7 +15,7 @@ class Response {
15
}, {});
16
}
17
18
- obj[routeName] = model.stripColumns();
+ obj[routeName] = (model && model.stripColumns()) || model;
19
return obj;
20
21
0 commit comments