diff --git a/form/draft/draft.view.ts b/form/draft/draft.view.ts index baf2ae3fc68..97d9b49f2b6 100644 --- a/form/draft/draft.view.ts +++ b/form/draft/draft.view.ts @@ -2,7 +2,7 @@ namespace $.$$ { type Primitive = string | number | boolean - type Value = readonly Primitive[] | Primitive + type Value = readonly Primitive[] | Primitive | Record type Model = Record Value> function norm_string(val: unknown) { @@ -27,13 +27,8 @@ namespace $.$$ { } @ $mol_mem_key - value_arr_num( field: string, next? : readonly number[] | null ) { - return this.value( field, next )?.map(norm_number) ?? [] - } - - @ $mol_mem_key - value_arr_bool( field: string, next? : readonly boolean[] | null ) { - return this.value( field, next )?.map(norm_bool) ?? [] + value_rec_str( field: string, next? : Record | null ) { + return this.value( field, next ) ?? {} } @ $mol_mem_key