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

FluxComponent error when rendering array with one element #53

Closed
ghost opened this issue Mar 2, 2015 · 2 comments
Closed

FluxComponent error when rendering array with one element #53

ghost opened this issue Mar 2, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 2, 2015

I’ve written a very simple todo app using flummox@^2.11.0. It starts out with with four items, and the only thing the user can do is to delete items. The component rendering the array of items fails when there is only one item left. It seems like there is an issue with FluxComponent – it fails when containing an array consisting of one item.

Error:

Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined

Location:

FluxMixin.js:189

Here is the source:

https://github.com/unfold/flummox-todo/blob/v0.1.0/entry.js

I tried to update flummox to the lastest version in order to check if it has been fixed, but it seems like I’ve got some migration to do. (It says Uncaught TypeError: Cannot read property 'cloneWithProps' of undefined.)

@ghost ghost changed the title FluxComponent error when rendering array with one item FluxComponent error when rendering array with one element Mar 2, 2015
@acdlite
Copy link
Owner

acdlite commented Mar 2, 2015

Good catch. Should be fixed in v2.12.4. Thanks!

@acdlite acdlite closed this as completed Mar 2, 2015
@acdlite
Copy link
Owner

acdlite commented Mar 2, 2015

@alexanderteinum Just to clarify, both of the errors you reported should be fixed.

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

No branches or pull requests

1 participant