Skip to content

Commit a604875

Browse files
committed
fix(explorer): fix filtered groups search
1 parent 77fff73 commit a604875

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

apps/explorer/src/app/[network]/page.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ export default function Network() {
2929
fetchData()
3030
}, [])
3131

32-
const filterGroups = useCallback((groupId: string) => {
33-
const groups = allGroups.filter((group) => (!groupId ? true : group.id.includes(groupId)))
32+
const filterGroups = useCallback(
33+
(groupId: string) => {
34+
const groups = allGroups.filter((group) => (!groupId ? true : group.id.includes(groupId)))
3435

35-
setFilteredGroups(groups)
36-
}, [])
36+
setFilteredGroups(groups)
37+
},
38+
[allGroups]
39+
)
3740

3841
return (
3942
allGroups && (

0 commit comments

Comments
 (0)