Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Need a more strict condition to handle api calls when the article id is invalid. #22

Open
liu599 opened this issue Nov 4, 2017 · 1 comment

Comments

@liu599
Copy link

liu599 commented Nov 4, 2017

Need a change line 51 in file posts.js

My suggestion,

  !posts[id] || posts[id].deleted

When posts[id] is undefined, it will return an empty Object as we expect.

@sanderpost
Copy link

Created pullrequest #27 for your pleasure.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants