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

Random color selection shows error! #1

Open
adijha opened this issue Jun 2, 2019 · 1 comment
Open

Random color selection shows error! #1

adijha opened this issue Jun 2, 2019 · 1 comment

Comments

@adijha
Copy link

adijha commented Jun 2, 2019

No description provided.

@NorthWillov
Copy link

Random color button will show an error if you have no palettes left, to fix this just add a prop "defaultPalettes" to <NewPaletteForm/> and paste a "seedColors" function to it, like that:

image

and than in NewPaletteForm.js find a function "addRandomColor()" and change constance allColors from this.props.pallettes.map to this.props.defaultPalettes.map like that:

image

that must fix an issue.

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

2 participants