mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-17 02:17:49 +00:00
Fix field creation when submitting with return/enter key
This commit is contained in:
parent
dc8360c0f9
commit
a8174a8b0f
2 changed files with 9 additions and 2 deletions
changelog/entries/unreleased/bug
web-frontend/modules/database/components/field
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "bug",
|
||||
"message": "Fix field creation when submitting with return/enter key",
|
||||
"issue_number": null,
|
||||
"bullet_points": [],
|
||||
"created_at": "2023-03-07"
|
||||
}
|
|
@ -161,10 +161,10 @@ export default {
|
|||
if (this.existingFieldId !== null) {
|
||||
fields = fields.filter((f) => f.id !== this.existingFieldId)
|
||||
}
|
||||
return !fields.map((f) => f.name).includes(param.trim())
|
||||
return !fields.map((f) => f.name).includes(param?.trim())
|
||||
},
|
||||
mustNotClashWithReservedName(param) {
|
||||
return !RESERVED_BASEROW_FIELD_NAMES.includes(param.trim())
|
||||
return !RESERVED_BASEROW_FIELD_NAMES.includes(param?.trim())
|
||||
},
|
||||
getFormComponent(type) {
|
||||
return this.$registry.get('field', type).getFormComponent()
|
||||
|
|
Loading…
Add table
Reference in a new issue