fix(state): changing species clears language, citizenship, and subspecies selections
This commit is contained in:
parent
48f8b46827
commit
c220815b89
20 changed files with 172 additions and 104 deletions
|
|
@ -68,6 +68,7 @@ function parseField(raw: any): FieldDef {
|
|||
const type = raw['@_type'];
|
||||
|
||||
switch (type) {
|
||||
case 'name':
|
||||
case 'text':
|
||||
case 'textarea':
|
||||
case 'date':
|
||||
|
|
@ -80,6 +81,8 @@ function parseField(raw: any): FieldDef {
|
|||
case 'citizenship':
|
||||
case 'languages':
|
||||
return { ...base, type };
|
||||
case 'separator':
|
||||
return { type: 'separator', label: raw['@_label'] ?? '' };
|
||||
case 'number':
|
||||
return {
|
||||
...base,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue