Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.
This repository was 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

@liu599

Description

@liu599

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions