diff --git a/src/Pages/Internal/RoutePattern.elm b/src/Pages/Internal/RoutePattern.elm index ae17e9fc..ced88a6d 100644 --- a/src/Pages/Internal/RoutePattern.elm +++ b/src/Pages/Internal/RoutePattern.elm @@ -129,7 +129,7 @@ routeToBranch : RoutePattern -> ( Elm.CodeGen.Pattern, Elm.CodeGen.Expression ) routeToBranch route = case route.segments of [] -> - ( Elm.CodeGen.listPattern [], Elm.CodeGen.val "TODO" ) + ( Elm.CodeGen.listPattern [], Elm.CodeGen.val "Index" ) _ -> ( Elm.CodeGen.listPattern diff --git a/tests/Pages/RouteParamsTest.elm b/tests/Pages/RouteParamsTest.elm index 9ea775d8..8a022b1d 100644 --- a/tests/Pages/RouteParamsTest.elm +++ b/tests/Pages/RouteParamsTest.elm @@ -143,7 +143,7 @@ suite = [] |> testCaseGenerator ( Elm.CodeGen.listPattern [] - , Elm.CodeGen.val "TODO" + , Elm.CodeGen.val "Index" ) , test "dynamic segment" <| \() ->