diff options
author | 2022-11-22 03:00:35 +0530 | |
---|---|---|
committer | 2022-11-21 21:30:35 +0000 | |
commit | ca23ef9f29939239265bf1826d42318eeecc4f1f (patch) | |
tree | 81e40f38943268606438cd5c3bec8d6fb3e1dbf8 | |
parent | Fix for services self hosted url / Team Id / Include pre-releases not updati... (diff) | |
download | ferdium-app-ca23ef9f29939239265bf1826d42318eeecc4f1f.tar.gz ferdium-app-ca23ef9f29939239265bf1826d42318eeecc4f1f.tar.zst ferdium-app-ca23ef9f29939239265bf1826d42318eeecc4f1f.zip |
Fix for edit services throw error due to proxy data is undefined in storeSettings (#790)
-rw-r--r-- | src/containers/settings/EditServiceScreen.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/containers/settings/EditServiceScreen.tsx b/src/containers/settings/EditServiceScreen.tsx index 05375d352..9e61cdd78 100644 --- a/src/containers/settings/EditServiceScreen.tsx +++ b/src/containers/settings/EditServiceScreen.tsx | |||
@@ -344,7 +344,13 @@ class EditServiceScreen extends Component<IProps> { | |||
344 | 344 | ||
345 | if (proxy.isEnabled) { | 345 | if (proxy.isEnabled) { |
346 | const serviceProxyConfig: IProxyConfig = service | 346 | const serviceProxyConfig: IProxyConfig = service |
347 | ? stores.settings.proxy[service.id] | 347 | ? /* |
348 | TODO - [TS DEBT] find out why sometimes proxy[service.id] gives undefined | ||
349 | Note in proxy service id exist as key but value is undefined rather that proxy empty object | ||
350 | |||
351 | Temp fix - or-ed {} (to stores.settings.proxy[service.id] ) to avoid undefined proxy in settingStore throw error | ||
352 | */ | ||
353 | stores.settings.proxy[service.id] || {} | ||
348 | : {}; | 354 | : {}; |
349 | 355 | ||
350 | config.fields.proxy = { | 356 | config.fields.proxy = { |