File tree Expand file tree Collapse file tree
src/components/CippWizard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,20 +115,20 @@ export const CippWizardVacationConfirmation = (props) => {
115115 endDate : values . endDate ,
116116 reference : values . reference || null ,
117117 postExecution : values . postExecution || [ ] ,
118- } ;
118+ }
119119
120- if ( values . forwardOption === " internalAddress" ) {
121- forwardingData . ForwardInternal = values . forwardInternal ;
120+ if ( values . forwardOption === ' internalAddress' ) {
121+ forwardingData . ForwardInternal = values . forwardInternal
122122 }
123123
124- if ( values . forwardOption === " ExternalAddress" ) {
125- forwardingData . ForwardExternal = values . forwardExternal ;
124+ if ( values . forwardOption === ' ExternalAddress' ) {
125+ forwardingData . ForwardExternal = values . forwardExternal
126126 }
127127
128128 forwardingVacation . mutate ( {
129- url : " /api/ExecScheduleForwardingVacation" ,
129+ url : ' /api/ExecScheduleForwardingVacation' ,
130130 data : forwardingData ,
131- } ) ;
131+ } )
132132 }
133133
134134 if ( values . enableOOO ) {
@@ -189,18 +189,6 @@ export const CippWizardVacationConfirmation = (props) => {
189189 return 'Not set'
190190 }
191191
192- const formatForwardingTarget = ( ) => {
193- if ( values . forwardOption === "internalAddress" ) {
194- return values . forwardInternal ?. label || values . forwardInternal ?. value || values . forwardInternal || "Not set" ;
195- }
196-
197- if ( values . forwardOption === "ExternalAddress" ) {
198- return values . forwardExternal || "Not set" ;
199- }
200-
201- return "Not set" ;
202- } ;
203-
204192 return (
205193 < Stack spacing = { 3 } >
206194 { /* Summary */ }
You can’t perform that action at this time.
0 commit comments