Merge pull request #13504 from Budibase/budi-8126/update-external-types

Update external types
This commit is contained in:
Michael Drury 2024-04-17 12:11:49 +01:00 committed by GitHub
commit 413db41d5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -380,7 +380,12 @@ function copyExistingPropsOver(
continue
}
table.schema[key] = existingTableSchema[key]
table.schema[key] = {
...existingTableSchema[key],
externalType:
existingTableSchema[key].externalType ||
table.schema[key].externalType,
}
}
}
return table

View File

@ -348,8 +348,7 @@ const preSaveAction: Partial<Record<SourceName, any>> = {
* Make sure all datasource entities have a display name selected
*/
export function setDefaultDisplayColumns(datasource: Datasource) {
//
for (let entity of Object.values(datasource.entities || {})) {
for (const entity of Object.values(datasource.entities || {})) {
if (entity.primaryDisplay) {
continue
}