diff --git a/components/Layout.tsx b/components/Layout.tsx index 29108e0..b1b2e20 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -37,7 +37,7 @@ export default function Layout({ children, isPathRoot }: LayoutProps) { }); const { defaultData, defaultLoading, defaultError } = useDefaultMovies(1); - const { currentState } = useCurrentState({ filter, searchTerm }); + const { currentState, setCurrentState } = useCurrentState({ filter, searchTerm }); const isLoaded = useLoading({ filterLoading, @@ -65,6 +65,9 @@ export default function Layout({ children, isPathRoot }: LayoutProps) { asideOffsetBreakpoint="sm" navbar={