Set the selectedChord to Nothing when setting a key
This helps us avoid showing a chord from a key that the user did not whitelist.
This commit is contained in:
parent
8620d86fd0
commit
74ebb8e869
1 changed files with 1 additions and 0 deletions
|
@ -234,6 +234,7 @@ update msg model =
|
|||
| whitelistedKeys = keys
|
||||
, whitelistedChords =
|
||||
keys |> List.concatMap Theory.chordsForKey
|
||||
, selectedChord = Nothing
|
||||
}
|
||||
, Cmd.none
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue