change(ui) - widget preview loader
This commit is contained in:
parent
7b6ad3b56c
commit
6b0f8ac8be
1 changed files with 1 additions and 0 deletions
|
|
@ -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() })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue