mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-27 06:13:16 +03:00
fix:person head photo (#5749)
before: https://github.com/twentyhq/twenty/assets/76474110/2d9d3e60-886e-4ad3-a1a3-b9484e49791c after: https://github.com/twentyhq/twenty/assets/76474110/877a15e6-ca72-450a-b25c-b4b323656d7f
This commit is contained in:
parent
126d9ef2e6
commit
3c4b497846
@ -5,6 +5,7 @@ import { getLogoUrlFromDomainName } from '~/utils';
|
|||||||
import { isDefined } from '~/utils/isDefined';
|
import { isDefined } from '~/utils/isDefined';
|
||||||
|
|
||||||
import { getImageIdentifierFieldValue } from './getImageIdentifierFieldValue';
|
import { getImageIdentifierFieldValue } from './getImageIdentifierFieldValue';
|
||||||
|
import { getImageAbsoluteURIOrBase64 } from '~/utils/image/getImageAbsoluteURIOrBase64';
|
||||||
|
|
||||||
export const getAvatarUrl = (
|
export const getAvatarUrl = (
|
||||||
objectNameSingular: string,
|
objectNameSingular: string,
|
||||||
@ -20,7 +21,7 @@ export const getAvatarUrl = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (objectNameSingular === CoreObjectNameSingular.Person) {
|
if (objectNameSingular === CoreObjectNameSingular.Person) {
|
||||||
return record.avatarUrl ?? '';
|
return getImageAbsoluteURIOrBase64(record.avatarUrl) ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
const imageIdentifierFieldValue = getImageIdentifierFieldValue(
|
const imageIdentifierFieldValue = getImageIdentifierFieldValue(
|
||||||
|
Loading…
Reference in New Issue
Block a user