fix new column key setter

This commit is contained in:
shamsmosowi
2021-11-13 19:10:24 +11:00
parent c755817ae6
commit 69f6c06f79

View File

@@ -89,7 +89,7 @@ export default function NewColumn({
onChange={(e) => {
setColumnLabel(e.target.value);
if (type !== FieldType.id && !isAuditField) {
setFieldKey(_camel(columnLabel));
setFieldKey(_camel(e.target.value));
}
}}
helperText="Set the user-facing name for this column."