mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prettier: Upgrade to 2 (#30387)
* Updated package json but not updated source files * Update eslint plugin * updated files
This commit is contained in:
@@ -39,8 +39,8 @@ export class AdHocVariableEditorUnConnected extends PureComponent<Props> {
|
||||
const { variable, editor } = this.props;
|
||||
const dataSources = editor.extended?.dataSources ?? [];
|
||||
const infoText = editor.extended?.infoText ?? null;
|
||||
const options = dataSources.map(ds => ({ label: ds.text, value: ds.value ?? '' }));
|
||||
const value = options.find(o => o.value === variable.datasource) ?? options[0];
|
||||
const options = dataSources.map((ds) => ({ label: ds.text, value: ds.value ?? '' }));
|
||||
const value = options.find((o) => o.value === variable.datasource) ?? options[0];
|
||||
|
||||
return (
|
||||
<VerticalGroup spacing="xs">
|
||||
|
Reference in New Issue
Block a user