Skip to content

Commit

Permalink
feat(pci-load-balancer): fix throwing error on region selection
Browse files Browse the repository at this point in the history
ref:TAPC-2304

Signed-off-by: tsiorifamonjena <[email protected]>
  • Loading branch information
Tsiorifamonjena committed Jan 10, 2025
1 parent 6142046 commit 656688b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ export const useGetFlavor = (
],
queryFn: () => getFlavor(projectId, regionName, addon),
enabled: !!projectId && !!regionName && !!addon,
throwOnError: true,
});
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const useGetFloatingIps = (projectId: string, region: string) => {
queryKey: ['project', projectId, 'region', region, 'floating-ips'],
queryFn: () => getFloatingIps(projectId, region),
enabled: !!projectId && !!region,
throwOnError: true,
});

const defaultFloatingIp = useDefaultFloatingIp();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export const useGetRegionPrivateNetworks = (
queryKey: ['project', projectId, 'region', region, 'networks'],
queryFn: () => getRegionPrivateNetworks(projectId, region),
enabled: !!projectId && !!region,
throwOnError: true,
});

const list = useMemo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const RegionStep = ({
<RegionSelector
projectId={project.project_id}
onSelectRegion={(selectedRegion) => {
store.set.region(undefined);
if (selectedRegion) {
const region = regions
?.get(store.addon?.code)
Expand Down

0 comments on commit 656688b

Please sign in to comment.