Skip to content

Commit 127b7d9

Browse files
committed
Merge branch '13425-team-picker-bug' of https://github.com/grafana/grafana into 13425-team-picker-bug
2 parents 9a8a476 + dcee077 commit 127b7d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/app/features/explore/Explore.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
523523
const logsButtonActive = showingLogs ? 'active' : '';
524524
const tableButtonActive = showingBoth || showingTable ? 'active' : '';
525525
const exploreClass = split ? 'explore explore-split' : 'explore';
526+
const selectedDatasource = datasource ? exploreDatasources.find(d => d.label === datasource.name) : undefined;
526527

527528
return (
528529
<div className={exploreClass} ref={this.getRef}>
@@ -555,8 +556,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
555556
placeholder="Select datasource"
556557
loadingMessage={() => 'Loading datasources...'}
557558
noOptionsMessage={() => 'No datasources found'}
558-
getOptionValue={i => i.value}
559-
getOptionLabel={i => i.label}
559+
value={selectedDatasource}
560560
components={{
561561
Option: PickerOption,
562562
IndicatorsContainer,

0 commit comments

Comments
 (0)