fix: create columns if all are related columns and therefore no real columns exists!

This commit is contained in:
Darshan
2025-08-29 19:16:29 +05:30
parent be4aeec299
commit b336d4e184
@@ -252,8 +252,9 @@
let columns = $table.columns;
const hasAnyRelationships = columns.some((column) => isRelationship(column));
const filteredColumns = columns.filter((col) => col.type !== 'relationship');
if (!columns.length) {
if (!filteredColumns.length) {
try {
columns = await generateColumns($project, page.params.database, page.params.table);