Fixed missing react key attributes

canary
WolverinDEV 2020-06-15 17:07:47 +02:00
parent d7185497fc
commit be1065d210
2 changed files with 6 additions and 6 deletions

View File

@ -307,12 +307,12 @@ class PermissionEditorModal extends Modal {
renderBody() {
return (
<div className={cssStyle.container}>
<ContextDivider id={"test"} defaultValue={25} direction={"horizontal"}>
<div key={"left"} className={cssStyle.contextContainer + " " + cssStyle.left}>
<ContextDivider id={"permission-editor"} defaultValue={25} direction={"horizontal"}>
<div className={cssStyle.contextContainer + " " + cssStyle.left}>
<ActiveTabInfo events={this.modalEvents} />
<SideBar modalEvents={this.modalEvents} editorEvents={this.editorEvents} connection={this.connection} />
</div>
<div key={"right"} className={cssStyle.contextContainer + " " + cssStyle.right}>
<div className={cssStyle.contextContainer + " " + cssStyle.right}>
<TabSelector events={this.modalEvents} />
<PermissionEditor events={this.editorEvents} connection={this.connection} />
</div>

View File

@ -1192,9 +1192,9 @@ interface PermissionEditorState {
export class PermissionEditor extends React.Component<PermissionEditorProperties, PermissionEditorState> {
render() {
return [
<MenuBar events={this.props.events} connection={this.props.connection} />,
<PermissionTable events={this.props.events} />,
<div className={cssStyle.containerFooter}>
<MenuBar key={"menu-bar"} events={this.props.events} connection={this.props.connection} />,
<PermissionTable key={"table"} events={this.props.events} />,
<div key={"footer"} className={cssStyle.containerFooter}>
<RefreshButton events={this.props.events} />
</div>
]