Skip to content

Commit

Permalink
bug:FS-2183 Fixes API selector on scanoss SettingsDialog.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
agustingroh committed Nov 15, 2024
1 parent 8b35e05 commit 9d05c3d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/renderer/features/workspace/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const mapToGlobalSettingsFormValues = (cfg: IWorkspaceCfg): GlobalSetting
HTTPS_PROXY,
IGNORE_CERT_ERRORS,
} = cfg;

const defaultApi = APIS && APIS[DEFAULT_API_INDEX] ? APIS[DEFAULT_API_INDEX] : null;

const hasNoProxy = !HTTP_PROXY && !PAC_PROXY;
Expand All @@ -52,9 +51,9 @@ export const mapToGlobalSettingsFormValues = (cfg: IWorkspaceCfg): GlobalSetting
const sameConfigAsHttp = httpHost === httpsHost && httpPort === httpsPort;

return {
apiKey: defaultApi.API_KEY,
apiKey: defaultApi?.API_KEY,
apis: APIS || [],
apiUrl: defaultApi.URL,
apiUrl: defaultApi?.URL,
language: LNG,
sbomLedgerToken: TOKEN,
proxyConfig: {
Expand Down

0 comments on commit 9d05c3d

Please sign in to comment.