* 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:
co-authored by
Andreas Christou
parent
d5d2654dc5
commit
ce6aaa1a37
+4
-3
@@ -56,9 +56,10 @@ const SubscriptionField: React.FC<SubscriptionFieldProps> = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
query.subscriptions = change.map((c) => c.value ?? '');
|
onQueryChange({
|
||||||
|
...query,
|
||||||
onQueryChange(query);
|
subscriptions: change.map((c) => c.value ?? ''),
|
||||||
|
});
|
||||||
},
|
},
|
||||||
[query, onQueryChange]
|
[query, onQueryChange]
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user