()
| 2163 | return { user_id: raw, label: raw, is_current: false, description: "", affiliation: "", has_profile: false, updated_at: "" }; |
| 2164 | } |
| 2165 | const userId = raw?.user_id || raw?.id || raw?.name || ""; |
| 2166 | const role = raw?.role_name ? `${raw.role_name} · ` : ""; |
| 2167 | const label = userId ? `${role}${userId}` : ui().common.untitledUser; |
| 2168 | return { |
| 2169 | user_id: userId || label, |
| 2170 | label, |
| 2171 | role_name: raw?.role_name || "", |
| 2172 | description: raw?.description || "", |