Browse Source

Add keys.

feature/bike-tracking
Drew Larson 8 years ago
parent
commit
8e619d6ae2
  1. 2
      bikeshop_project/assets/js/bikes/components/Size/index.jsx
  2. 2
      bikeshop_project/assets/js/bikes/components/Source/index.jsx

2
bikeshop_project/assets/js/bikes/components/Size/index.jsx

@ -27,7 +27,7 @@ const styles = {
const Size = ({ size, onChange }) => {
const items = sizes.map(s =>
<MenuItem name="size" value={s} primaryText={friendlySize(s)} />,
<MenuItem key={s} name="size" value={s} primaryText={friendlySize(s)} />,
);
return (

2
bikeshop_project/assets/js/bikes/components/Source/index.jsx

@ -19,7 +19,7 @@ export const friendly = (s) => {
const Source = ({ source, onChange }) => {
const items = sources.map(s =>
<MenuItem value={s} primaryText={friendly(s)} />,
<MenuItem key={s} value={s} primaryText={friendly(s)} />,
);
return (

Loading…
Cancel
Save