fix(state): changing species clears language, citizenship, and subspecies selections

This commit is contained in:
lew 2026-03-24 02:33:35 +00:00
parent 48f8b46827
commit c220815b89
20 changed files with 172 additions and 104 deletions

View file

@ -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,