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

* Correctly update subscriptions prop in query

* Simplify setting of subscriptions value
pull/55915/head
Andreas Christou 3 years ago committed by GitHub
parent 678fb7c29a
commit 37aa45001f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      public/app/plugins/datasource/grafana-azure-monitor-datasource/components/SubscriptionField.tsx

@ -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…
Cancel
Save