chore(parameterComponent): remove unnecessary ts-ignore comments
fix(extraSidebarComponent): remove unnecessary if condition in handleBlur function
This commit is contained in:
parent
e8524ea090
commit
8275a9c2c1
2 changed files with 3 additions and 6 deletions
|
|
@ -115,7 +115,6 @@ export default function ParameterComponent({
|
||||||
groupedEdge.current = groupedObj;
|
groupedEdge.current = groupedObj;
|
||||||
|
|
||||||
if (groupedObj && groupedObj.length > 0) {
|
if (groupedObj && groupedObj.length > 0) {
|
||||||
//@ts-ignore
|
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
refHtml.current = groupedObj.map((item, index) => {
|
refHtml.current = groupedObj.map((item, index) => {
|
||||||
const Icon: any =
|
const Icon: any =
|
||||||
|
|
|
||||||
|
|
@ -76,11 +76,9 @@ export default function ExtraSidebar(): JSX.Element {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
function handleBlur() {
|
function handleBlur() {
|
||||||
if (getFilterEdge.length > 0) {
|
setFilterData(data);
|
||||||
setFilterData(data);
|
setFilterEdge([]);
|
||||||
setFilterEdge([]);
|
setSearch("");
|
||||||
setSearch("");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue