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

Fix invalid attempt to iterate #483

Closed
wants to merge 1 commit into from
Closed

Fix invalid attempt to iterate #483

wants to merge 1 commit into from

Conversation

DavidePrincipi
Copy link
Member

The for/of loop wants to iterate over a plain JS object and fails. The fix forces the iterator to work properly over the object values list.

See error stack traces attached to https://trello.com/c/AKVeMcbT/430-core-p0-ui-progress-indicator-freezes-at-100

The for/of loop wants to iterate over a plain JS object and fails. The
fix forces the iterator to work properly over the object values list.
@DavidePrincipi DavidePrincipi added the bug Something isn't working label Oct 20, 2023
@DavidePrincipi DavidePrincipi self-assigned this Oct 20, 2023
@DavidePrincipi
Copy link
Member Author

The fix cannot be accepted because it is the frontend itself that passes an array. The backend should return an array again, instead it converts it to object at some point.

https://github.com/search?q=repo%3ANethServer%2Fns8-core%20extraTextParams&type=code

It is a backend regression.

@DavidePrincipi DavidePrincipi deleted the fix-progress branch November 6, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant