Merge pull request #1412 from AnushDeokar/fix/tablename-textbox-ui-error-firstclick

Table name textbox UI error fix
This commit is contained in:
Shams
2023-10-25 00:41:50 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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]);

View File

@@ -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 },