mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
Fix error reseting (#40893)
This commit is contained in:
parent
c43776aec3
commit
ce8e569700
@ -26,7 +26,8 @@ export function PromExemplarField({ datasource, onChange, query }: Props) {
|
||||
onChange(false);
|
||||
} else {
|
||||
setError(null);
|
||||
if (prevError !== error) {
|
||||
// If error is cleared, we want to change exemplar to true
|
||||
if (prevError && !error) {
|
||||
onChange(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user