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