diff --git a/app/client/src/sagas/DatasourcesSagas.ts b/app/client/src/sagas/DatasourcesSagas.ts index 1c2b4f01ab..f3f31b97d1 100644 --- a/app/client/src/sagas/DatasourcesSagas.ts +++ b/app/client/src/sagas/DatasourcesSagas.ts @@ -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, }, });