mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-01 18:35:24 +00:00
Enable editing index names
This commit is contained in:
@@ -20,7 +20,7 @@ export default function TableField({ data, tid, index }) {
|
||||
<Col span={7}>
|
||||
<Input
|
||||
value={data.name}
|
||||
validateStatus={data.name === "" ? "error" : "default"}
|
||||
validateStatus={data.name.trim() === "" ? "error" : "default"}
|
||||
placeholder="Name"
|
||||
onChange={(value) => updateField(tid, index, { name: value })}
|
||||
onFocus={(e) => setEditField({ name: e.target.value })}
|
||||
|
Reference in New Issue
Block a user