mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix: manual table creation starts with 1 row, 1 column
Manual tables now create with a single 'name' column and 1 row instead of 2 columns and 20 rows. Copilot tables remain at 0 rows, 0 columns. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -147,12 +147,9 @@ export function Tables() {
|
||||
const result = await createTable.mutateAsync({
|
||||
name,
|
||||
schema: {
|
||||
columns: [
|
||||
{ name: 'name', type: 'string' },
|
||||
{ name: 'status', type: 'string' },
|
||||
],
|
||||
columns: [{ name: 'name', type: 'string' }],
|
||||
},
|
||||
initialRowCount: 20,
|
||||
initialRowCount: 1,
|
||||
})
|
||||
const tableId = result?.data?.table?.id
|
||||
if (tableId) {
|
||||
|
||||
Reference in New Issue
Block a user