Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read the Node's value instead of the Node itself #357

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Vinnl
Copy link
Collaborator

@Vinnl Vinnl commented Oct 2, 2019

I'm not really quite sure what this code is supposed to do, but the way it's set up right now, it doesn't look like it would ever work. status appears to be an array of Nodes, so it will never be equal to 200 or 400 - we'd have to read the value for that.

Of course, if it never worked, the question is whether it should work. It appears to mark a Document as not editable if its status code was 200 or 404 - the former is the case for a Document that I think should be editable?

@Vinnl Vinnl requested a review from timbl October 2, 2019 10:50
src/update-manager.js Show resolved Hide resolved
@Vinnl
Copy link
Collaborator Author

Vinnl commented Oct 8, 2019

Request from Tim: add tests.

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

Successfully merging this pull request may close these issues.

2 participants