Skip to content

Commit

Permalink
Fixed an Navigation issue in Trash and Your Apps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Imiss-U1025 committed Dec 4, 2024
1 parent 9fcd924 commit 8886606
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ export function HomeLayout(props: HomeLayoutProps) {
getFilterMenuItem(HomeResTypeEnum.All),
getFilterMenuItem(HomeResTypeEnum.Application),
getFilterMenuItem(HomeResTypeEnum.Module),
...(mode !== "marketplace" ? [getFilterMenuItem(HomeResTypeEnum.Navigation)] : []),
...(mode !== "marketplace" ? [getFilterMenuItem(HomeResTypeEnum.Navigation), getFilterMenuItem(HomeResTypeEnum.MobileTabLayout)] : []),
...(mode !== "trash" && mode !== "marketplace" ? [getFilterMenuItem(HomeResTypeEnum.Folder)] : []),
]}
getPopupContainer={(node: any) => node}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ export function TrashView() {
const [modify, setModify] = useState(false);

useEffect( () => {
if (typeFilter === 7) // Application of Navigation is 3 in API.
setTypeFilter(3);
try{
fetchApplicationElements({
pageNum:currentPage,
pageSize:pageSize,
applicationType: typeFilter,
applicationType: typeFilter === 7 ? 3 : typeFilter, // // Application of Navigation is 3 in API.
name: searchValues,
}).then(
data => {
Expand Down

0 comments on commit 8886606

Please sign in to comment.