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