ui: pick series by name if no id exist
This commit is contained in:
parent
6873f1c56b
commit
1c1a41bb55
1 changed files with 2 additions and 2 deletions
|
|
@ -50,10 +50,10 @@ function WidgetSessions(props: Props) {
|
|||
if (!widget.series) return;
|
||||
const seriesOptions = widget.series.map((item: any) => ({
|
||||
label: item.name,
|
||||
value: item.seriesId
|
||||
value: item.seriesId ?? item.name
|
||||
}));
|
||||
setSeriesOptions([{ label: 'All', value: 'all' }, ...seriesOptions]);
|
||||
}, [widget.series]);
|
||||
}, [widget.series.length]);
|
||||
|
||||
const fetchSessions = (metricId: any, filter: any) => {
|
||||
if (!isMounted()) return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue