Do not restore from and size from the previous model (#562)

This commit is contained in:
Naïm Favier 2022-11-04 12:06:19 +01:00 committed by GitHub
parent 515d60601b
commit 5bbe885b62
Failed to generate hash of commit

View file

@ -299,12 +299,6 @@ init args defaultNixOSChannel nixosChannels maybeModel =
modelChannel = modelChannel =
getField .channel defaultNixOSChannel getField .channel defaultNixOSChannel
modelFrom =
getField .from 0
modelSize =
getField .size 50
in in
( { channel = ( { channel =
args.channel args.channel
@ -317,10 +311,10 @@ init args defaultNixOSChannel nixosChannels maybeModel =
, show = args.show , show = args.show
, from = , from =
args.from args.from
|> Maybe.withDefault modelFrom |> Maybe.withDefault 0
, size = , size =
args.size args.size
|> Maybe.withDefault modelSize |> Maybe.withDefault 50
, buckets = args.buckets , buckets = args.buckets
, sort = , sort =
args.sort args.sort