mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: prevent error when sharing a dashboard. (#33680)
This commit is contained in:
parent
578a755cb4
commit
545d930a13
@ -71,10 +71,10 @@ export class ShareModal extends React.Component<Props, State> {
|
|||||||
this.state = getInitialState(props);
|
this.state = getInitialState(props);
|
||||||
}
|
}
|
||||||
|
|
||||||
onDismiss = () => {
|
// onDismiss = () => {
|
||||||
this.setState(getInitialState(this.props));
|
// //this.setState(getInitialState(this.props));
|
||||||
this.props.onDismiss();
|
// this.props.onDismiss();
|
||||||
};
|
// };
|
||||||
|
|
||||||
onSelectTab = (t: any) => {
|
onSelectTab = (t: any) => {
|
||||||
this.setState({ activeTab: t.value });
|
this.setState({ activeTab: t.value });
|
||||||
@ -112,9 +112,9 @@ export class ShareModal extends React.Component<Props, State> {
|
|||||||
const ActiveTab = activeTabModel.component;
|
const ActiveTab = activeTabModel.component;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal isOpen={true} title={this.renderTitle()} onDismiss={this.onDismiss}>
|
<Modal isOpen={true} title={this.renderTitle()} onDismiss={this.props.onDismiss}>
|
||||||
<TabContent>
|
<TabContent>
|
||||||
<ActiveTab dashboard={dashboard} panel={panel} onDismiss={this.onDismiss} />
|
<ActiveTab dashboard={dashboard} panel={panel} onDismiss={this.props.onDismiss} />
|
||||||
</TabContent>
|
</TabContent>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user