mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Set exemplars to falsee if they are disabled
This commit is contained in:
parent
8a530ab5b5
commit
e7b697c9f3
@ -25,6 +25,13 @@ export function PromExemplarField({ datasource, onChange, isEnabled, refId }: Pr
|
||||
};
|
||||
}, [datasource, refId]);
|
||||
|
||||
// If exemplars are disabled, set them to false
|
||||
useEffect(() => {
|
||||
if (error) {
|
||||
onChange(false);
|
||||
}
|
||||
}, [error, onChange]);
|
||||
|
||||
const iconButtonStyles = cx(
|
||||
{
|
||||
[styles.activeIcon]: isEnabled,
|
||||
|
Loading…
Reference in New Issue
Block a user