improve insertion of reindex messages -- prevent empty string lines and add key prop to every new line
This commit is contained in:
@ -24,7 +24,9 @@ class ActorOverviewPage extends React.Component<props, state> {
|
||||
actors: [],
|
||||
NActorPopupVisible: false
|
||||
};
|
||||
}
|
||||
|
||||
componentDidMount(): void {
|
||||
this.fetchAvailableActors();
|
||||
}
|
||||
|
||||
@ -36,7 +38,7 @@ class ActorOverviewPage extends React.Component<props, state> {
|
||||
<Button title='Add Actor' onClick={(): void => this.setState({NActorPopupVisible: true})}/>
|
||||
</SideBar>
|
||||
<div className={style.container}>
|
||||
{this.state.actors.map((el) => (<ActorTile actor={el}/>))}
|
||||
{this.state.actors.map((el) => (<ActorTile key={el.actor_id} actor={el}/>))}
|
||||
</div>
|
||||
{this.state.NActorPopupVisible ?
|
||||
<NewActorPopup onHide={(): void => {
|
||||
|
Reference in New Issue
Block a user