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
|
| whitelistedKeys = keys
|
||||||
, whitelistedChords =
|
, whitelistedChords =
|
||||||
keys |> List.concatMap Theory.chordsForKey
|
keys |> List.concatMap Theory.chordsForKey
|
||||||
|
, selectedChord = Nothing
|
||||||
}
|
}
|
||||||
, Cmd.none
|
, Cmd.none
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue