Fixed warning: key property for editor widgets

This commit is contained in:
Rainer Simon 2021-08-03 09:48:49 +02:00
parent 3268236a7b
commit 8f0a78a7d4
1 changed files with 1 additions and 0 deletions

View File

@ -323,6 +323,7 @@ export default class Editor extends Component {
<div className="r6o-editor-inner">
{widgets.map((widget, idx) =>
React.cloneElement(widget, {
key: `${idx}`,
focus: idx === 0,
annotation : currentAnnotation,
readOnly : this.props.readOnly,