mirror of
https://github.com/NixOS/nixos-search
synced 2024-11-13 23:47:07 +00:00
Do not restore from
and size
from the previous model (#562)
This commit is contained in:
parent
515d60601b
commit
5bbe885b62
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue