Skip to content

Automate browser based workflows with AI

Fix credential not clearing when deselected in login block (#4581)

Celal Zamanogluc94532ceefc6
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx
index 7545878de..9141f3080 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginBlockCredentialSelector.tsx
@@ -145,6 +145,7 @@ function LoginBlockCredentialSelector({ nodeId, value, onChange }: Props) {
return (
<>
<Select
+ key={value ?? "no-credential"}
value={isCredentialMissing ? undefined : selectedCredentialId ?? value}
onValueChange={(newValue) => {
if (newValue === "new") {