Skip to content

Commit e972491

Browse files
author
ryanholte
committed
[CHORE] adds gueard
1 parent 4b0b64c commit e972491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/route/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Response {
1515
}, {});
1616
}
1717

18-
obj[routeName] = model.stripColumns();
18+
obj[routeName] = (model && model.stripColumns()) || model;
1919
return obj;
2020
}
2121

0 commit comments

Comments
 (0)