mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Fix remembering selection when going to detail view
This commit is contained in:
@ -24,10 +24,10 @@ type alias Model =
|
||||
}
|
||||
|
||||
|
||||
init : List FolderItem -> Model
|
||||
init all =
|
||||
init : Maybe FolderItem -> List FolderItem -> Model
|
||||
init selected all =
|
||||
{ all = List.sortBy .name all
|
||||
, selected = Nothing
|
||||
, selected = Maybe.map .id selected
|
||||
, expanded = False
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user