Skip to content

Commit 8886606

Browse files
committed
Fixed an Navigation issue in Trash and Your Apps.
1 parent 9fcd924 commit 8886606

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ export function HomeLayout(props: HomeLayoutProps) {
545545
getFilterMenuItem(HomeResTypeEnum.All),
546546
getFilterMenuItem(HomeResTypeEnum.Application),
547547
getFilterMenuItem(HomeResTypeEnum.Module),
548-
...(mode !== "marketplace" ? [getFilterMenuItem(HomeResTypeEnum.Navigation)] : []),
548+
...(mode !== "marketplace" ? [getFilterMenuItem(HomeResTypeEnum.Navigation), getFilterMenuItem(HomeResTypeEnum.MobileTabLayout)] : []),
549549
...(mode !== "trash" && mode !== "marketplace" ? [getFilterMenuItem(HomeResTypeEnum.Folder)] : []),
550550
]}
551551
getPopupContainer={(node: any) => node}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ export function TrashView() {
2020
const [modify, setModify] = useState(false);
2121

2222
useEffect( () => {
23-
if (typeFilter === 7) // Application of Navigation is 3 in API.
24-
setTypeFilter(3);
2523
try{
2624
fetchApplicationElements({
2725
pageNum:currentPage,
2826
pageSize:pageSize,
29-
applicationType: typeFilter,
27+
applicationType: typeFilter === 7 ? 3 : typeFilter, // // Application of Navigation is 3 in API.
3028
name: searchValues,
3129
}).then(
3230
data => {

0 commit comments

Comments
 (0)