Fix broken image urls in Settings > Profile and Invite To Workspace Email (#8942)
Fixes #8601 We had 3 implementations of getImageAbsoluteURI: in twenty-front, in twenty-ui and in twenty-emails. I was able to remove the one in twenty-front but I could not remove it from twenty-emails as this is a standalone for now. The vision is to introduce shared utils in a twenty-shared package
This commit is contained in:
@ -20,7 +20,7 @@ type SendInviteLinkEmailProps = {
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
};
|
||||
serverUrl?: string;
|
||||
serverUrl: string;
|
||||
};
|
||||
|
||||
export const SendInviteLinkEmail = ({
|
||||
@ -29,7 +29,9 @@ export const SendInviteLinkEmail = ({
|
||||
sender,
|
||||
serverUrl,
|
||||
}: SendInviteLinkEmailProps) => {
|
||||
const workspaceLogo = getImageAbsoluteURI(workspace.logo, serverUrl);
|
||||
const workspaceLogo = workspace.logo
|
||||
? getImageAbsoluteURI(workspace.logo, serverUrl)
|
||||
: null;
|
||||
|
||||
return (
|
||||
<BaseEmail width={333}>
|
||||
|
||||
Reference in New Issue
Block a user