Skip to content

Commit

Permalink
B #6554: Change VNet cluster API call (#3027)
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Hansson <[email protected]>
  • Loading branch information
vichansson authored Apr 9, 2024
1 parent 697061f commit b89adf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fireedge/src/client/components/Tabs/VNetwork/Clusters.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { Box } from '@mui/material'

import { useViews } from 'client/features/Auth'
import { useGetClustersQuery } from 'client/features/OneApi/cluster'
import { useGetVNTemplateQuery } from 'client/features/OneApi/networkTemplate'
import { useGetVNetworkQuery } from 'client/features/OneApi/network'

import { ClustersTable } from 'client/components/Tables'
import { RESOURCE_NAMES } from 'client/constants'
Expand All @@ -39,7 +39,7 @@ const { CLUSTER } = RESOURCE_NAMES
*/
const ClustersTab = ({ id }) => {
const { push: redirectTo } = useHistory()
const { data: vnet } = useGetVNTemplateQuery({ id })
const { data: vnet } = useGetVNetworkQuery({ id })

const { view, hasAccessToResource } = useViews()
const detailAccess = useMemo(() => hasAccessToResource(CLUSTER), [view])
Expand Down

0 comments on commit b89adf2

Please sign in to comment.