Annotations: Fix issue with spinner always showing (#46686) (#46687)

(cherry picked from commit a9002e80b4)

Co-authored-by: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-03-17 13:24:16 +00:00
committed by GitHub
co-authored by Joao Silva
parent 00e27a3925
commit 2bcbb2dfb3
@@ -46,7 +46,7 @@ export const AnnotationPicker = ({ annotation, events, onEnabledChanged }: Annot
<InlineSwitch value={annotation.enable} onChange={() => onEnabledChanged(annotation)} disabled={loading} />
</InlineField>
<div className={styles.indicator}>
<LoadingIndicator loading={true} onCancel={onCancel} />
<LoadingIndicator loading={loading} onCancel={onCancel} />
</div>
</InlineFieldRow>
</div>