Content-Length: 315630 | pFad | http://github.com/Lowcoder-Pro/Lowcoder-Base/commit/92f3786029a1d15be988aaf9cf5d37289a406217

89 Merge pull request #740 from lowcoder-org/dev · Lowcoder-Pro/Lowcoder-Base@92f3786 · GitHub
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

Lines changed: 1 addition & 4 deletions
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

Lines changed: 2 additions & 2 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Lowcoder-Pro/Lowcoder-Base/commit/92f3786029a1d15be988aaf9cf5d37289a406217

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy