Skip to content

Commit bf082ad

Browse files
authored
Merge pull request #41319 from appsmithorg/release
27/10 Daily Promotion
2 parents d18fd92 + 506d124 commit bf082ad

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

app/client/src/ce/pages/Applications/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ export function ApplicationsSection(props: any) {
929929
<ResourceListLoader isMobile={isMobile} resources={applications} />
930930
) : (
931931
<>
932-
{!isAiAgentInstanceEnabled && (
932+
{(!isAiAgentInstanceEnabled || !isAiAgentFlowEnabled) && (
933933
<ApplicationCardList
934934
applications={nonAnvilApplications}
935935
canInviteToWorkspace={canInviteToWorkspace}
@@ -946,7 +946,7 @@ export function ApplicationsSection(props: any) {
946946
workspaceId={activeWorkspace.id}
947947
/>
948948
)}
949-
{isAiAgentFlowEnabled && (
949+
{isAiAgentFlowEnabled && isAiAgentInstanceEnabled && (
950950
<ApplicationCardList
951951
applications={anvilApplications}
952952
canInviteToWorkspace={canInviteToWorkspace}

app/client/src/pages/AppIDE/layouts/components/Header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const Header = () => {
142142
);
143143

144144
const deployLink = useHref(viewerURL, {
145-
basePageId: currentPage?.basePageId,
145+
basePageId: currentPage?.basePageId || null,
146146
});
147147

148148
const updateApplicationDispatch = (

app/client/src/pages/Editor/utils.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,15 @@ export function useHref<T extends URLBuilderParams>(
300300
const pageId = useSelector(getCurrentPageId);
301301

302302
useEffect(() => {
303-
if (pageId) setHref(urlBuilderFn(params));
303+
if (pageId) {
304+
try {
305+
setHref(urlBuilderFn(params));
306+
} catch (error) {
307+
// If basePageId is not available yet, keep href as empty string
308+
// This can happen during initial page load or navigation
309+
setHref("");
310+
}
311+
}
304312
}, [params, urlBuilderFn, pageId]);
305313

306314
return href;

0 commit comments

Comments
 (0)