Merge pull request #17439 from supabase/chore/fix-fk-lookup

Fix sentry error on fk lookup
This commit is contained in:
Joshen Lim authored and GitHub committed 2023-09-15 13:55:27 +08:00
commit bb54503e47
1 file changed
+1 -1
@@ -113,7 +113,7 @@ const ForeignKeySelector = ({
}
const table = find(tables, { id: tableId })
if (table) {
const primaryColumn = table.primary_keys[0].name
const primaryColumn = table.primary_keys[0]?.name
const firstColumn = table.columns?.length ? table.columns[0].name : undefined
setSelectedForeignKey({