fix(Sentry TypeError): undefined is not an object (evaluating 'ee.excluded')

This commit is contained in:
Ramesh Mane
2025-08-15 07:41:51 +00:00
parent c88728d0d3
commit 31b4ab3ed0

View File

@@ -240,7 +240,7 @@ const finalSchema = computed(() => {
relationships: predictedSchema.value.relationships.filter((relationship: { from: string; to: string }) => {
const fromTable = predictedSchema.value.tables.find((table: { title: string }) => table.title === relationship.from)
const toTable = predictedSchema.value.tables.find((table: { title: string }) => table.title === relationship.to)
return !fromTable.excluded && !toTable.excluded
return !fromTable?.excluded && !toTable?.excluded
}),
views: predictedSchema.value.views.filter((view: any) => !view.excluded),
}