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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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