diff options
Diffstat (limited to 'src/containers')
-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 = { |