|
|
@ -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( |
|
|
|
table_name: table.table_name, |
|
|
|
project?.value?.id as string, |
|
|
|
// leave title empty to get a generated one based on table_name |
|
|
|
(baseId || project?.value?.bases?.[0].id)!, |
|
|
|
title: '', |
|
|
|
{ |
|
|
|
columns: table.columns || [], |
|
|
|
table_name: table.table_name, |
|
|
|
}) |
|
|
|
// 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 |
|
|
|
|
|
|
|
|
|
|
|