mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: Fixes closing share modal (#92267)
This commit is contained in:
parent
7b9843bc13
commit
3e84b2ba2f
@ -88,7 +88,12 @@ export class ShareModal extends SceneObjectBase<ShareModalState> implements Moda
|
||||
}
|
||||
|
||||
onDismiss = () => {
|
||||
locationService.partial({ shareView: null });
|
||||
if (this.state.panelRef) {
|
||||
const dashboard = getDashboardSceneFor(this);
|
||||
dashboard.closeModal();
|
||||
} else {
|
||||
locationService.partial({ shareView: null });
|
||||
}
|
||||
};
|
||||
|
||||
onChangeTab: ComponentProps<typeof ModalTabsHeader>['onChangeTab'] = (tab) => {
|
||||
|
Loading…
Reference in New Issue
Block a user