Browse Source

refactor: remove manual keyboard scroll handling, disable overflow in information sheet, and include field type in profile contract transformation

mortezaei 2 weeks ago
parent
commit
068b234076
  1. 2
      src/lib/marriage-profile-contract.ts

2
src/lib/marriage-profile-contract.ts

@ -17,9 +17,11 @@ export function normalizeMarriageField(raw: any): MarriageField | null {
const key = raw.key ?? raw.field_key ?? raw.fieldKey ?? raw.name ?? ""; const key = raw.key ?? raw.field_key ?? raw.fieldKey ?? raw.name ?? "";
const label = raw.label ?? raw.title ?? ""; const label = raw.label ?? raw.title ?? "";
const value = raw.value ?? raw.val ?? ""; const value = raw.value ?? raw.val ?? "";
const type = raw.type ?? raw.field_type ?? raw.fieldType ?? "text";
return { return {
key: String(key), key: String(key),
label: String(label), label: String(label),
type: String(type),
value: value ?? "", value: value ?? "",
option_id: raw.option_id ?? raw.optionId ?? null, option_id: raw.option_id ?? raw.optionId ?? null,
private: Boolean(raw.private ?? raw.is_private ?? false), private: Boolean(raw.private ?? raw.is_private ?? false),

Loading…
Cancel
Save