mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
react-panel: Avoid duplicate keys
This commit is contained in:
parent
97f7a7fbba
commit
69e5584d39
@ -57,7 +57,7 @@ export class EditorTabBody extends PureComponent<Props, State> {
|
||||
|
||||
renderMainSelection(view: EditorToolBarView) {
|
||||
return (
|
||||
<div className="toolbar__main" onClick={() => this.onToggleToolBarView(view)} key={view.title}>
|
||||
<div className="toolbar__main" onClick={() => this.onToggleToolBarView(view)} key={view.title + view.icon}>
|
||||
<img className="toolbar__main-image" src={view.imgSrc} />
|
||||
<div className="toolbar__main-name">{view.title}</div>
|
||||
<i className="fa fa-caret-down" />
|
||||
@ -74,7 +74,7 @@ export class EditorTabBody extends PureComponent<Props, State> {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="nav-buttons" key={view.title}>
|
||||
<div className="nav-buttons" key={view.title + view.icon}>
|
||||
<button className="btn navbar-button" onClick={onClick} disabled={view.disabled}>
|
||||
{view.icon && <i className={view.icon} />} {view.title}
|
||||
</button>
|
||||
|
Loading…
Reference in New Issue
Block a user