mirror of https://github.com/zulip/zulip.git
people: Fix get_custom_profile_data type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
3bce9fd293
commit
a5995a69f3
|
@ -1716,7 +1716,10 @@ export function my_custom_profile_data(field_id: number): ProfileData | null | u
|
||||||
return get_custom_profile_data(my_user_id, field_id);
|
return get_custom_profile_data(my_user_id, field_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function get_custom_profile_data(user_id: number, field_id: number): ProfileData | null {
|
export function get_custom_profile_data(
|
||||||
|
user_id: number,
|
||||||
|
field_id: number,
|
||||||
|
): ProfileData | null | undefined {
|
||||||
const person = get_by_user_id(user_id);
|
const person = get_by_user_id(user_id);
|
||||||
const profile_data = person.profile_data;
|
const profile_data = person.profile_data;
|
||||||
if (profile_data === undefined) {
|
if (profile_data === undefined) {
|
||||||
|
|
Loading…
Reference in New Issue