feat(chalice): fixed funnel-card
This commit is contained in:
parent
7d093ce06d
commit
15cfd0427b
1 changed files with 3 additions and 2 deletions
|
|
@ -1024,12 +1024,13 @@ class CreateCardSchema(CardChartSchema):
|
|||
values["metricValue"] = []
|
||||
|
||||
if values.get("metricType") == MetricType.funnel and \
|
||||
values.get("series") is not None and len(values["series"]) > 1:
|
||||
values.get("series") is not None and len(values["series"]) > 0:
|
||||
values["series"] = [values["series"][0]]
|
||||
elif values.get("metricType") not in [MetricType.table,
|
||||
MetricType.timeseries,
|
||||
MetricType.insights,
|
||||
MetricType.click_map] \
|
||||
MetricType.click_map,
|
||||
MetricType.funnel] \
|
||||
and values.get("series") is not None and len(values["series"]) > 0:
|
||||
values["series"] = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue