diff --git a/app/client/src/ce/pages/AppViewer/NavigationLogo.tsx b/app/client/src/ce/pages/AppViewer/NavigationLogo.tsx index 228ed8b506..9c5c549c2c 100644 --- a/app/client/src/ce/pages/AppViewer/NavigationLogo.tsx +++ b/app/client/src/ce/pages/AppViewer/NavigationLogo.tsx @@ -10,7 +10,10 @@ import { getCurrentApplication, } from "@appsmith/selectors/applicationSelectors"; import type { ApplicationPayload } from "@appsmith/constants/ReduxActionConstants"; -import { getViewModePageList } from "selectors/editorSelectors"; +import { + getCurrentPageId, + getViewModePageList, +} from "selectors/editorSelectors"; import { useHref } from "pages/Editor/utils"; import { APP_MODE } from "entities/App"; import { builderURL, viewerURL } from "RouteBuilder"; @@ -45,6 +48,7 @@ function NavigationLogo(props: NavigationLogoProps) { "applicationDetail.navigationSetting.logoAssetId", "", ); + const currentPageId = useSelector(getCurrentPageId); if ( !logoAssetId?.length || @@ -60,7 +64,8 @@ function NavigationLogo(props: NavigationLogoProps) {