Fix property key iterator

This commit is contained in:
Damien Duhamel 2018-04-13 21:41:11 +02:00 committed by Shawn Erquhart
parent 5b269274b6
commit 3eb30e5b1e

View File

@ -93,6 +93,7 @@ export default class EditorToolbar extends React.Component {
return [
<button
key="save-button"
className="nc-entryEditor-toolbar-saveButton"
onClick={() => hasChanged && onPersist()}
>
@ -100,6 +101,7 @@ export default class EditorToolbar extends React.Component {
</button>,
isNewEntry || !deleteLabel ? null
: <button
key="delete-button"
className="nc-entryEditor-toolbar-deleteButton"
onClick={hasUnpublishedChanges ? onDeleteUnpublishedChanges : onDelete}
>