Skip to content

Commit 48b7a74

Browse files
Arthur GambyArthur Gamby
authored andcommitted
fix: removing fix attemp as it breaks other links
1 parent 3f4b0ef commit 48b7a74

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/theme/DocCardList/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ export default function DocCardList(props: Props): JSX.Element {
1919
}
2020
const [filteredItems, setFilteredItems] = useState<any>(filterDocCardListItems(items));
2121
useEffect(() => {
22-
setFilteredItems(
23-
filteredItems.filter((e: any) => {
24-
if (e?.href?.slice(0, -1) === location.pathname) return false;
25-
if (e?.className === "hidden-sidebar") return false;
26-
return true;
27-
})
28-
);
22+
setFilteredItems(filteredItems.filter((e: any) => e?.href?.slice(0, -1) !== location.pathname));
2923
}, [items]);
3024
return (
3125
<section className={clsx("row", className)}>

0 commit comments

Comments
 (0)