fix(ui): funnel issues payload, fitler index

This commit is contained in:
Shekar Siri 2023-10-31 18:00:19 +01:00
parent aaf5bda488
commit 822cae801b
2 changed files with 5 additions and 1 deletions

View file

@ -23,6 +23,10 @@ function FunnelIssues() {
const newFilter = {
...filter,
metricType: widget.metricType,
metricFormat: widget.metricFormat,
metricOf: widget.metricOf,
metricValue: widget.metricValue,
series: filter.series.map((item: any) => {
return {
...item,

View file

@ -67,7 +67,7 @@ function FilterItem(props: Props) {
return (
<div className="flex items-center hover:bg-active-blue -mx-5 px-5 py-2">
<div className="flex items-start w-full">
{!isFilter && !hideIndex && !!filterIndex && (
{!isFilter && !hideIndex && filterIndex >= 0 && (
<div
className="mt-1 flex-shrink-0 border w-6 h-6 text-xs flex items-center justify-center rounded-full bg-gray-light-shade mr-2">
<span>{filterIndex + 1}</span>