File tree 1 file changed +11
-2
lines changed
pkg/webui/console/containers/gateway-managed-gateway/connection-settings
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,16 @@ const GatewayConnectionSettings = () => {
248
248
newValues . ethernet_profile = updateInitialEthernetProfile ( ethernetProfile )
249
249
}
250
250
251
- setInitialValues ( oldValues => ( { ...oldValues , ...newValues } ) )
251
+ setInitialValues ( oldValues => ( {
252
+ ...oldValues ,
253
+ ...newValues ,
254
+ ...( hasWifi && {
255
+ wifi_profile : {
256
+ ...oldValues . wifi_profile ,
257
+ ...newValues . wifi_profile ,
258
+ } ,
259
+ } ) ,
260
+ } ) )
252
261
} ,
253
262
[
254
263
fetchEthernetProfile ,
@@ -328,7 +337,7 @@ const GatewayConnectionSettings = () => {
328
337
329
338
setError ( undefined )
330
339
try {
331
- let body = { }
340
+ const body = { }
332
341
const { wifi_profile, ethernet_profile } = values
333
342
334
343
if ( hasWifi ) {
You can’t perform that action at this time.
0 commit comments