Merge pull request #10437 from appsmithorg/fix/name-of-undefined-datasource

fix: Name of undefined error in datasource catch Block
This commit is contained in:
Daniel 2022-02-02 19:53:11 +01:00 committed by GitHub
commit d29016590b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,7 +295,7 @@ export function* deleteDatasourceSaga(
text: error.message,
source: {
id: actionPayload.payload.id,
name: datasource.name,
name: datasource?.name ?? "Datasource name is not set",
type: ENTITY_TYPE.DATASOURCE,
},
});