AzureMonitor: Correctly update subscriptions value in ARG editor (#55860)

* Correctly update subscriptions prop in query

* Simplify setting of subscriptions value
This commit is contained in:
Andreas Christou
2022-09-28 11:59:07 +01:00
committed by GitHub
parent 678fb7c29a
commit 37aa45001f
@@ -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]
); );