mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
Bugfix/Save default credential data when add new (#3435)
save default credential data when add new
This commit is contained in:
@@ -24,6 +24,7 @@ import useApi from '@/hooks/useApi'
|
|||||||
|
|
||||||
// utils
|
// utils
|
||||||
import useNotifier from '@/utils/useNotifier'
|
import useNotifier from '@/utils/useNotifier'
|
||||||
|
import { initializeDefaultNodeData } from '@/utils/genericHelper'
|
||||||
|
|
||||||
// const
|
// const
|
||||||
import { baseURL, REDACTED_CREDENTIAL_VALUE } from '@/store/constant'
|
import { baseURL, REDACTED_CREDENTIAL_VALUE } from '@/store/constant'
|
||||||
@@ -95,7 +96,8 @@ const AddEditCredentialDialog = ({ show, dialogProps, onCancel, onConfirm, setEr
|
|||||||
// When credential dialog is to add a new credential
|
// When credential dialog is to add a new credential
|
||||||
setName('')
|
setName('')
|
||||||
setCredential({})
|
setCredential({})
|
||||||
setCredentialData({})
|
const defaultCredentialData = initializeDefaultNodeData(dialogProps.credentialComponent.inputs)
|
||||||
|
setCredentialData(defaultCredentialData)
|
||||||
setComponentCredential(dialogProps.credentialComponent)
|
setComponentCredential(dialogProps.credentialComponent)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user