mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 09:01:09 +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
|
||||
import useNotifier from '@/utils/useNotifier'
|
||||
import { initializeDefaultNodeData } from '@/utils/genericHelper'
|
||||
|
||||
// const
|
||||
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
|
||||
setName('')
|
||||
setCredential({})
|
||||
setCredentialData({})
|
||||
const defaultCredentialData = initializeDefaultNodeData(dialogProps.credentialComponent.inputs)
|
||||
setCredentialData(defaultCredentialData)
|
||||
setComponentCredential(dialogProps.credentialComponent)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user