diff --git a/client/packages/lowcoder/src/pages/ApplicationV2/HomeLayout.tsx b/client/packages/lowcoder/src/pages/ApplicationV2/HomeLayout.tsx index c5749fd37..3bb84fba9 100644 --- a/client/packages/lowcoder/src/pages/ApplicationV2/HomeLayout.tsx +++ b/client/packages/lowcoder/src/pages/ApplicationV2/HomeLayout.tsx @@ -307,7 +307,6 @@ export function HomeLayout(props: HomeLayoutProps) { checkIsMobile(window.innerWidth) ? "card" : getHomeLayout() ); - useEffect(() => saveHomeLayout(layout), [layout]); useEffect(() => { @@ -329,13 +328,11 @@ export function HomeLayout(props: HomeLayoutProps) { // Merge local and global apps into the elements array displayElements = [...markedLocalApps, ...markedGlobalApps]; } - else if (mode === "marketplace") { + else if (mode === "marketplace" && !isSelfHost) { const markedLocalApps = localMarketplaceApps.map(app => ({ ...app, isLocalMarketplace: true })); displayElements = [...markedLocalApps]; } - console.log("displayElements", displayElements, mode, window.location.host, isSelfHost); - const resList: HomeRes[] = displayElements .filter((e) => searchValue diff --git a/client/packages/lowcoder/src/pages/ApplicationV2/MarketplaceView.tsx b/client/packages/lowcoder/src/pages/ApplicationV2/MarketplaceView.tsx index 8d4ac977a..4207cc821 100644 --- a/client/packages/lowcoder/src/pages/ApplicationV2/MarketplaceView.tsx +++ b/client/packages/lowcoder/src/pages/ApplicationV2/MarketplaceView.tsx @@ -46,9 +46,9 @@ export function MarketplaceView() { useEffect(() => { // Make sure we are fetching local marketplace apps for self-hosted environments if (window.location.host !== 'app.lowcoder.cloud') { - fetchLocalMarketplaceApps(); + fetchMarketplaceApps(); } - fetchMarketplaceApps(); + fetchLocalMarketplaceApps(); }, []); return (