change(ui) - widget preview loader

This commit is contained in:
Shekar Siri 2022-03-09 16:01:04 +01:00
parent 7b6ad3b56c
commit 6b0f8ac8be

View file

@ -58,6 +58,7 @@ function CustomMetricWidget(props: Props) {
return
};
prevMetricRef.current = metric;
setLoading(true);
// fetch new data for the widget preview
new APIClient()['post']('/custom_metrics/try', { ...metricParams, ...metric.toSaveData() })