File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
pkg/webui/console/containers/gateway-managed-gateway/connection-settings Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ const GatewayConnectionSettings = () => {
196
196
197
197
const updateInitialWifiProfile = useCallback (
198
198
( profile , entityId , isNonSharedProfile ) => ( {
199
+ ...initialWifiProfile ,
199
200
...( isNonSharedProfile && { ...profile . data } ) ,
200
201
profile_id : isNonSharedProfile
201
202
? 'non-shared'
@@ -209,6 +210,7 @@ const GatewayConnectionSettings = () => {
209
210
210
211
const updateInitialEthernetProfile = useCallback (
211
212
profile => ( {
213
+ ...initialEthernetProfile ,
212
214
...revertEthernetProfile ( profile ?. data ?? { } ) ,
213
215
profile_id : selectedManagedGateway . ethernet_profile_id ?? '' ,
214
216
} ) ,
@@ -248,16 +250,7 @@ const GatewayConnectionSettings = () => {
248
250
newValues . ethernet_profile = updateInitialEthernetProfile ( ethernetProfile )
249
251
}
250
252
251
- setInitialValues ( oldValues => ( {
252
- ...oldValues ,
253
- ...newValues ,
254
- ...( hasWifi && {
255
- wifi_profile : {
256
- ...oldValues . wifi_profile ,
257
- ...newValues . wifi_profile ,
258
- } ,
259
- } ) ,
260
- } ) )
253
+ setInitialValues ( oldValues => ( { ...oldValues , ...newValues } ) )
261
254
} ,
262
255
[
263
256
fetchEthernetProfile ,
You can’t perform that action at this time.
0 commit comments