Skip to content

Commit

Permalink
fix: Force the value to be boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaledgarbaya committed May 22, 2017
1 parent 4f21c38 commit 53305ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get/get-full-source-space.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,5 @@ function extractItems (response) {
}

function filterDrafts (items, includeDrafts) {
return includeDrafts ? items : items.filter((item) => item.sys.publishedVersion)
return includeDrafts ? items : items.filter((item) => !!item.sys.publishedVersion)
}

0 comments on commit 53305ce

Please sign in to comment.