Skip to content

Commit 92f3786

Browse files
authored
Merge pull request lowcoder-org#740 from lowcoder-org/dev
Dev
2 parents d567e1e + 11bfd37 commit 92f3786

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

client/packages/lowcoder/src/pages/ApplicationV2/HomeLayout.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ export function HomeLayout(props: HomeLayoutProps) {
307307
checkIsMobile(window.innerWidth) ? "card" : getHomeLayout()
308308
);
309309

310-
311310
useEffect(() => saveHomeLayout(layout), [layout]);
312311

313312
useEffect(() => {
@@ -329,13 +328,11 @@ export function HomeLayout(props: HomeLayoutProps) {
329328
// Merge local and global apps into the elements array
330329
displayElements = [...markedLocalApps, ...markedGlobalApps];
331330
}
332-
else if (mode === "marketplace") {
331+
else if (mode === "marketplace" && !isSelfHost) {
333332
const markedLocalApps = localMarketplaceApps.map(app => ({ ...app, isLocalMarketplace: true }));
334333
displayElements = [...markedLocalApps];
335334
}
336335

337-
console.log("displayElements", displayElements, mode, window.location.host, isSelfHost);
338-
339336
const resList: HomeRes[] = displayElements
340337
.filter((e) =>
341338
searchValue

client/packages/lowcoder/src/pages/ApplicationV2/MarketplaceView.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ export function MarketplaceView() {
4646
useEffect(() => {
4747
// Make sure we are fetching local marketplace apps for self-hosted environments
4848
if (window.location.host !== 'app.lowcoder.cloud') {
49-
fetchLocalMarketplaceApps();
49+
fetchMarketplaceApps();
5050
}
51-
fetchMarketplaceApps();
51+
fetchLocalMarketplaceApps();
5252
}, []);
5353

5454
return (

0 commit comments

Comments
 (0)