mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Fix observable function in DashboardQueryRunnerImpl (#35398)
This commit is contained in:
parent
6d78f92816
commit
35168764c3
@ -60,8 +60,8 @@ class DashboardQueryRunnerImpl implements DashboardQueryRunner {
|
|||||||
const alertState = result.alertStates.find((res) => Boolean(panelId) && res.panelId === panelId);
|
const alertState = result.alertStates.find((res) => Boolean(panelId) && res.panelId === panelId);
|
||||||
subscriber.next({ annotations: dedupAnnotations(annotations), alertState });
|
subscriber.next({ annotations: dedupAnnotations(annotations), alertState });
|
||||||
},
|
},
|
||||||
error: subscriber.error,
|
error: (err) => subscriber.error(err),
|
||||||
complete: subscriber.complete,
|
complete: () => subscriber.complete(),
|
||||||
});
|
});
|
||||||
return () => {
|
return () => {
|
||||||
subscription.unsubscribe();
|
subscription.unsubscribe();
|
||||||
|
Loading…
Reference in New Issue
Block a user