From 5bbe885b62bfb1f1dd27d0337adcd32552e17f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Fri, 4 Nov 2022 12:06:19 +0100 Subject: [PATCH] Do not restore `from` and `size` from the previous model (#562) --- frontend/src/Search.elm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/frontend/src/Search.elm b/frontend/src/Search.elm index a2376b3..0b3d249 100644 --- a/frontend/src/Search.elm +++ b/frontend/src/Search.elm @@ -299,12 +299,6 @@ init args defaultNixOSChannel nixosChannels maybeModel = modelChannel = getField .channel defaultNixOSChannel - - modelFrom = - getField .from 0 - - modelSize = - getField .size 50 in ( { channel = args.channel @@ -317,10 +311,10 @@ init args defaultNixOSChannel nixosChannels maybeModel = , show = args.show , from = args.from - |> Maybe.withDefault modelFrom + |> Maybe.withDefault 0 , size = args.size - |> Maybe.withDefault modelSize + |> Maybe.withDefault 50 , buckets = args.buckets , sort = args.sort