这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/TableSettingsDialog/TableName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function TableName({ watchedField, ...props }: ITableNameProps) {
onChange(startCase(watchedValue));
} else if (typeof value === "string") {
// otherwise if table name is valid, set watched value to table name
onChange(value.trim());
onChange(startCase(value.trim()));
}
}
}, [watchedValue, disabled, onChange, value]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/TableSettingsDialog/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const tableSettings = (
name: "name",
label: "Table name",
required: true,
watchedField: "collection",
watchedField: "name",
assistiveText: "User-facing name for this table",
autoFocus: true,
gridCols: { xs: 12, sm: 6 },
Expand Down