warnings/map>key related warnings
This commit is contained in:
parent
38cb065570
commit
e388ed1721
@ -67,11 +67,11 @@ export default class ControlPane extends Component {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{
|
{
|
||||||
fields.map((field) => {
|
fields.map((field, i) => {
|
||||||
if (isHidden(field)) {
|
if (isHidden(field)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return <div key={field.get('name')} className={styles.widget}>{this.controlFor(field)}</div>;
|
return <div key={i} className={styles.widget}>{this.controlFor(field)}</div>;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
@ -88,10 +88,10 @@ export default class PreviewPane extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const styleEls = registry.getPreviewStyles()
|
const styleEls = registry.getPreviewStyles()
|
||||||
.map(style => <link href={style} type="text/css" rel="stylesheet" />);
|
.map((style, i) => <link key={i} href={style} type="text/css" rel="stylesheet" />);
|
||||||
|
|
||||||
if (!collection) {
|
if (!collection) {
|
||||||
return <Frame className={styles.frame} head={styleEl} />;
|
return <Frame className={styles.frame} head={styleEls} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We need to create a lightweight component here so that we can
|
// We need to create a lightweight component here so that we can
|
||||||
|
Loading…
x
Reference in New Issue
Block a user