mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Remove unneccessary type conversion
This commit is contained in:
parent
1c5a811760
commit
184d77156a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue