0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Merge pull request #1540 from jgillich/fix

Remove unneccessary type conversion
This commit is contained in:
Hannah Wolfe 2013-11-22 14:07:29 -08:00
commit c6b3eb33cf

View file

@ -12,8 +12,8 @@
parse: function (resp) {
if (resp.status) {
resp.published = !!(resp.status === 'published');
resp.draft = !!(resp.status === 'draft');
resp.published = resp.status === 'published';
resp.draft = resp.status === 'draft';
}
if (resp.tags) {
// TODO: parse tags into it's own collection on the model (this.tags)