1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-03-17 05:52:42 +00:00

Merge branch '3323-error-thrown-when-the-data-source-context-loads-and-one-or-more-integrations-have-been-deleted' into 'develop'

Resolve "Error thrown when the data source context loads, and one or more integrations have been deleted."

Closes 

See merge request 
This commit is contained in:
Peter Evans 2025-01-07 13:20:20 +00:00
commit 131411104c
2 changed files with 9 additions and 2 deletions
changelog/entries/unreleased/bug
web-frontend/modules/integrations

View file

@ -0,0 +1,7 @@
{
"type": "bug",
"message": "[Builder] Resolved an error which was thrown when a data source's integration was destroyed.",
"issue_number": 3323,
"bullet_points": [],
"created_at": "2024-12-30"
}

View file

@ -55,7 +55,7 @@ export class LocalBaserowTableServiceType extends ServiceType {
'integration/getIntegrationById'
](application, service.integration_id)
const databases = integration.context_data?.databases
const databases = integration?.context_data?.databases || []
const tableSelected = databases
.map((database) => database.tables)
@ -268,7 +268,7 @@ export class LocalBaserowAggregateRowsServiceType extends LocalBaserowTableServi
'integration/getIntegrationById'
](application, service.integration_id)
const databases = integration.context_data?.databases
const databases = integration?.context_data?.databases || []
const tableSelected = databases
.map((database) => database.tables)