@@ -50,22 +50,36 @@ export const ServicePorting = ({
50
50
) ;
51
51
52
52
const [ areaList , setAreaList ] = useState < Tab [ ] > ( [ ] ) ;
53
- const [ selectArea , setSelectArea ] = useState < string > ( currentSelectedService . deployRequest . region . area ) ;
53
+ const [ selectArea , setSelectArea ] = useState < string > ( currentSelectedService . region . area ) ;
54
54
55
55
const [ regionList , setRegionList ] = useState < RegionDropDownInfo [ ] > ( [ ] ) ;
56
- const [ selectRegion , setSelectRegion ] = useState < Region > ( currentSelectedService . deployRequest . region ) ;
56
+ const [ selectRegion , setSelectRegion ] = useState < Region > ( currentSelectedService . region ) ;
57
57
58
58
const [ selectAvailabilityZones , setSelectAvailabilityZones ] = useState < Record < string , string > > (
59
- currentSelectedService . deployRequest . availabilityZones ?? { }
59
+ currentSelectedService . availabilityZones ?? { }
60
60
) ;
61
- const [ selectFlavor , setSelectFlavor ] = useState < string > ( currentSelectedService . deployRequest . flavor ) ;
61
+ const [ selectFlavor , setSelectFlavor ] = useState < string > ( currentSelectedService . flavor ) ;
62
62
63
63
const [ billingModes , setBillingModes ] = useState < billingMode [ ] | undefined > ( undefined ) ;
64
64
const [ selectBillingMode , setSelectBillingMode ] = useState < billingMode > (
65
- currentSelectedService . deployRequest . billingMode . toString ( ) as billingMode
65
+ currentSelectedService . billingMode . toString ( ) as billingMode
66
66
) ;
67
67
68
- const [ deployParams , setDeployParams ] = useState < DeployRequest > ( currentSelectedService . deployRequest ) ;
68
+ const deployRequest : DeployRequest = {
69
+ category : currentSelectedService . category ,
70
+ serviceName : currentSelectedService . name ,
71
+ version : currentSelectedService . version ,
72
+ serviceHostingType : currentSelectedService . serviceHostingType ,
73
+ csp : currentSelectedService . csp ,
74
+ customerServiceName : currentSelectedService . customerServiceName ,
75
+ region : currentSelectedService . region ,
76
+ availabilityZones : currentSelectedService . availabilityZones ,
77
+ flavor : currentSelectedService . flavor ,
78
+ billingMode : currentSelectedService . billingMode ,
79
+ serviceRequestProperties : currentSelectedService . inputProperties ,
80
+ } ;
81
+
82
+ const [ deployParams , setDeployParams ] = useState < DeployRequest > ( deployRequest ) ;
69
83
70
84
const getOrderableServicesQuery = useQuery ( {
71
85
queryKey : [
@@ -117,7 +131,7 @@ export const ServicePorting = ({
117
131
} ;
118
132
119
133
const getServicePriceQuery = useGetServicePricesQuery (
120
- currentSelectedService . serviceTemplateId ?? '' ,
134
+ currentSelectedService . serviceTemplateId ,
121
135
selectRegion . name ,
122
136
selectRegion . site ,
123
137
selectBillingMode ,
0 commit comments