mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: create columns if all are related columns and therefore no real columns exists!
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user