Skip to content

Commit

Permalink
tablename first click error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AnushDeokar committed Sep 13, 2023
1 parent 0099bd1 commit 31296ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 31296ef

Please sign in to comment.