Skip to content

Commit

Permalink
fix: doesn't filter stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Oct 9, 2024
1 parent b7c6ce9 commit 24d471e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Sidebar/SidebarList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export const SidebarList = component$((props: Props) => {
useTask$(({ track }) => {
track(filter);

if (filter.value === "") return;
if (filter.value === "") {
sidebarEntries.value = props.sidebarEntries;
return;
}

const newSidebarEntries = props.sidebarEntries.map((entry) => {
const linkList = entry.linkList.filter((l) =>
Expand Down

0 comments on commit 24d471e

Please sign in to comment.