diff --git a/openmetadata-ui/src/main/resources/ui/src/App.tsx b/openmetadata-ui/src/main/resources/ui/src/App.tsx index cbcc1eaef496..a038ba039a38 100644 --- a/openmetadata-ui/src/main/resources/ui/src/App.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/App.tsx @@ -63,10 +63,12 @@ const App: FC = () => { ? '/favicon.png' : applicationConfig?.customLogoConfig?.customFaviconUrlPath ?? '/favicon.png'; - const link = document.querySelector('link[rel~="icon"]'); + const link = document.querySelectorAll('link[rel~="icon"]'); - if (link) { - link.setAttribute('href', faviconHref); + if (!isEmpty(link)) { + link.forEach((item) => { + item.setAttribute('href', faviconHref); + }); } }, [applicationConfig]);