ui: fix issue filter mapper
This commit is contained in:
parent
997aa36a86
commit
a37cd2437e
1 changed files with 4 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ import { Icon, Loader } from 'UI';
|
|||
import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG';
|
||||
import { Input } from 'antd';
|
||||
|
||||
import { FilterCategory, FilterKey } from "Types/filter/filterType";
|
||||
import { FilterCategory, FilterKey, FilterType } from "Types/filter/filterType";
|
||||
import stl from './FilterModal.module.css';
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import { useStore } from 'App/mstore';
|
||||
|
|
@ -195,6 +195,9 @@ function FilterModal(props: Props) {
|
|||
filter.key = FilterKey.CUSTOM;
|
||||
filter.label = 'Custom Events'
|
||||
}
|
||||
if (filter.type === FilterType.ISSUE && filter.key.startsWith(`${FilterKey.ISSUE}_`)) {
|
||||
filter.key = FilterKey.ISSUE;
|
||||
}
|
||||
onFilterClick(filter)
|
||||
}
|
||||
const onFilterSearchClick = (filter: any) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue