mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
Merge pull request #840 from isikhi/patch-1
fix: unknown error throwing on missing credentials. error handling improves on ui section
This commit is contained in:
@@ -432,6 +432,10 @@ export const getCredentialData = async (selectedCredentialId: string, options: I
|
||||
const databaseEntities = options.databaseEntities as IDatabaseEntity
|
||||
|
||||
try {
|
||||
if (!selectedCredentialId) {
|
||||
return {}
|
||||
}
|
||||
|
||||
const credential = await appDataSource.getRepository(databaseEntities['Credential']).findOneBy({
|
||||
id: selectedCredentialId
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user