Clear default value state when switching to credential type (#SKY-7820) (#4622)

This commit is contained in:
Celal Zamanoglu
2026-02-04 00:59:56 +03:00
committed by GitHub
parent 7e35514924
commit 4301e3142d

View File

@@ -360,6 +360,15 @@ function WorkflowParameterEditPanel({
setAzureTotpKey("");
}
// Clear default value state when switching to credential type
// since credentials don't use default values
if (!wasCredential && isNowCredential) {
setDefaultValueState({
hasDefaultValue: false,
defaultValue: null,
});
}
if (!isNowCredential) {
setDefaultValueState((state) => {
return {