The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix: favicon when workspace icon is removed (#12451)
Karuna Tata26bd16a2cba2
diff --git a/packages/twenty-front/src/modules/ui/utilities/page-favicon/components/PageFavicon.tsx b/packages/twenty-front/src/modules/ui/utilities/page-favicon/components/PageFavicon.tsxindex cdfedce2455..aad5804ffe8 100644--- a/packages/twenty-front/src/modules/ui/utilities/page-favicon/components/PageFavicon.tsx+++ b/packages/twenty-front/src/modules/ui/utilities/page-favicon/components/PageFavicon.tsx@@ -2,25 +2,25 @@ import { workspacePublicDataState } from '@/auth/states/workspacePublicDataStateimport { DEFAULT_WORKSPACE_LOGO } from '@/ui/navigation/navigation-drawer/constants/DefaultWorkspaceLogo';import { Helmet } from 'react-helmet-async';import { useRecoilValue } from 'recoil';-import { REACT_APP_SERVER_BASE_URL } from '~/config';import { getImageAbsoluteURI } from 'twenty-shared/utils';+import { REACT_APP_SERVER_BASE_URL } from '~/config';export const PageFavicon = () => {const workspacePublicData = useRecoilValue(workspacePublicDataState);return (<Helmet>- {workspacePublicData?.logo && (- <link- rel="icon"- type="image/x-icon"- href={- getImageAbsoluteURI({- imageUrl: workspacePublicData.logo,- baseUrl: REACT_APP_SERVER_BASE_URL,- }) ?? DEFAULT_WORKSPACE_LOGO- }- />- )}+ <link+ rel="icon"+ type="image/x-icon"+ href={+ workspacePublicData?.logo+ ? (getImageAbsoluteURI({+ imageUrl: workspacePublicData.logo,+ baseUrl: REACT_APP_SERVER_BASE_URL,+ }) ?? DEFAULT_WORKSPACE_LOGO)+ : DEFAULT_WORKSPACE_LOGO+ }+ /></Helmet>);};