mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Correctly update subscriptions prop in query
* Simplify setting of subscriptions value
(cherry picked from commit 37aa45001f
)
Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
This commit is contained in:
parent
d5d2654dc5
commit
ce6aaa1a37
@ -56,9 +56,10 @@ const SubscriptionField: React.FC<SubscriptionFieldProps> = ({
|
||||
return;
|
||||
}
|
||||
|
||||
query.subscriptions = change.map((c) => c.value ?? '');
|
||||
|
||||
onQueryChange(query);
|
||||
onQueryChange({
|
||||
...query,
|
||||
subscriptions: change.map((c) => c.value ?? ''),
|
||||
});
|
||||
},
|
||||
[query, onQueryChange]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user