mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Datasource/CloudWatch: Fix some react errors (#26236)
This commit is contained in:
parent
373e869652
commit
f93c289fed
@ -256,13 +256,13 @@ export default class LogsCheatSheet extends PureComponent<ExploreStartPageProps,
|
||||
return (
|
||||
<div>
|
||||
<h2>CloudWatch Logs Cheat Sheet</h2>
|
||||
{CLIQ_EXAMPLES.map(cat => (
|
||||
<div>
|
||||
{CLIQ_EXAMPLES.map((cat, i) => (
|
||||
<div key={`cat-${i}`}>
|
||||
<div className={`cheat-sheet-item__title ${cx(exampleCategory)}`}>{cat.category}</div>
|
||||
{cat.examples.map((item, i) => (
|
||||
<div className="cheat-sheet-item" key={`item-${i}`}>
|
||||
{cat.examples.map((item, j) => (
|
||||
<div className="cheat-sheet-item" key={`item-${j}`}>
|
||||
<h4>{item.title}</h4>
|
||||
{this.renderExpression(item.expr, `item-${i}`)}
|
||||
{this.renderExpression(item.expr, `item-${j}`)}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
@ -155,7 +155,7 @@ export class CloudWatchLogsQueryField extends React.PureComponent<CloudWatchLogs
|
||||
|
||||
onLogGroupSearchDebounced = debounce(this.onLogGroupSearch, 300);
|
||||
|
||||
componentWillMount = () => {
|
||||
componentDidMount = () => {
|
||||
const { datasource, query, onChange } = this.props;
|
||||
|
||||
this.setState({
|
||||
|
Loading…
Reference in New Issue
Block a user