Open ChaoTzuJung opened 5 years ago
If I type wrong url, I will git error on page EX: http://localhost:3000/palette/&@#$%%
https://github.com/Colt/react-colors/blob/c358775e0e23e32f47085df1fefc34e38ab0b6be/colors-app/src/App.js#L21-L25
Maybe it could write this to fix issue
findPalette = id => { const defaultPalette = colorsConfig[0]; return this.state.palettes.find(palette => palette.id === id) || defaultPalette; }
If I type wrong url, I will git error on page EX: http://localhost:3000/palette/&@#$%%
https://github.com/Colt/react-colors/blob/c358775e0e23e32f47085df1fefc34e38ab0b6be/colors-app/src/App.js#L21-L25
Maybe it could write this to fix issue