Skip to content

Commit

Permalink
Gateways nav bar link no longer redirects to details page
Browse files Browse the repository at this point in the history
  • Loading branch information
Elson9 committed Jul 4, 2024
1 parent b158bc2 commit 1db929d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nextapp/pages/manager/gateways/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Container } from '@chakra-ui/react';
import { useApi } from '@/shared/services/api';
import { useAuth } from '@/shared/services/auth';
import PageHeader from '@/components/page-header';
import { has } from 'lodash';

const GatewaysHome: React.FC = () => {
const { data, isSuccess, isError } = useApi(
Expand All @@ -21,7 +20,7 @@ const GatewaysHome: React.FC = () => {

React.useEffect(() => {
if (hasNamespace) {
router.push('/manager/gateways/detail');
router.push('/manager/gateways/list');
} else {
if (isSuccess && data.allNamespaces.length === 0) {
router.push('/manager/gateways/get-started');
Expand Down

0 comments on commit 1db929d

Please sign in to comment.