mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NewPanelEdit: Minor fixes (#23425)
This commit is contained in:
parent
05ea159082
commit
137b47ccbd
@ -85,7 +85,9 @@ export const PanelOptionsTab: FC<Props> = ({
|
||||
}
|
||||
|
||||
if (plugin.angularPanelCtrl) {
|
||||
elements.push(<AngularPanelOptions panel={panel} dashboard={dashboard} plugin={plugin} />);
|
||||
elements.push(
|
||||
<AngularPanelOptions panel={panel} dashboard={dashboard} plugin={plugin} key="angular panel options" />
|
||||
);
|
||||
}
|
||||
|
||||
elements.push(
|
||||
|
@ -54,7 +54,10 @@ export function panelEditorCleanUp(): ThunkResult<void> {
|
||||
// Resend last query result on source panel query runner
|
||||
// But do this after the panel edit editor exit process has completed
|
||||
setTimeout(() => {
|
||||
sourcePanel.getQueryRunner().pipeDataToSubject(panel.getQueryRunner().getLastResult());
|
||||
const lastResult = panel.getQueryRunner().getLastResult();
|
||||
if (lastResult) {
|
||||
sourcePanel.getQueryRunner().pipeDataToSubject(lastResult);
|
||||
}
|
||||
}, 20);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user