Fix credential not clearing when deselected in login block (#4581)
This commit is contained in:
@@ -145,6 +145,7 @@ function LoginBlockCredentialSelector({ nodeId, value, onChange }: Props) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Select
|
<Select
|
||||||
|
key={value ?? "no-credential"}
|
||||||
value={isCredentialMissing ? undefined : selectedCredentialId ?? value}
|
value={isCredentialMissing ? undefined : selectedCredentialId ?? value}
|
||||||
onValueChange={(newValue) => {
|
onValueChange={(newValue) => {
|
||||||
if (newValue === "new") {
|
if (newValue === "new") {
|
||||||
|
|||||||
Reference in New Issue
Block a user