|
|
@ -501,16 +501,12 @@ async function importTemplate() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
const createdTable = await $api.base.tableCreate( |
|
|
|
const createdTable = await $api.base.tableCreate(project.value?.id as string, (baseId || project.value?.bases?.[0].id)!, { |
|
|
|
project.value?.id as string, |
|
|
|
table_name: table.table_name, |
|
|
|
(baseId || project.value?.bases?.[0].id)!, |
|
|
|
// leave title empty to get a generated one based on table_name |
|
|
|
{ |
|
|
|
title: '', |
|
|
|
table_name: table.table_name, |
|
|
|
columns: table.columns || [], |
|
|
|
// leave title empty to get a generated one based on table_name |
|
|
|
}) |
|
|
|
title: '', |
|
|
|
|
|
|
|
columns: table.columns || [], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
table.id = createdTable.id |
|
|
|
table.id = createdTable.id |
|
|
|
table.title = createdTable.title |
|
|
|
table.title = createdTable.title |
|
|
|
|
|
|
|
|
|
|
|