Skip to content

Commit

Permalink
fix: fix undefined issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamgambhir97 committed Nov 21, 2024
1 parent 9b495a2 commit 0523b69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/guide-mdx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ const GuidesMdx = ({ content }: GuidesData) => {
}
if (filterState.evt === "input" && filterState.inputVal !== "") {
return (
item.title
.toLowerCase()
.includes(filterState.inputVal.toLowerCase()) ||
item.description
.toLowerCase()
.includes(filterState.inputVal.toLowerCase())
item?.title
?.toLowerCase()
?.includes(filterState.inputVal.toLowerCase()) ||
item?.description
?.toLowerCase()
?.includes(filterState.inputVal.toLowerCase())
);
}
return true;
Expand Down

0 comments on commit 0523b69

Please sign in to comment.