Commit 137b47cc by Torkel Ödegaard Committed by GitHub

NewPanelEdit: Minor fixes (#23425)

parent 05ea1590
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment