do not throw error when checking for initial checking of copilot enablement (#1693)

This commit is contained in:
sunghyunkang1111 2023-11-14 17:22:12 -06:00 committed by GitHub
parent 1aa4c18119
commit b9cbfc924f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export const getCopilotEnabled = async (): Promise<boolean> => {
}
if (!response?.ok) {
throw new Error(await response?.text());
return false;
}
const copilotPortalConfiguration = (await response?.json()) as CopilotEnabledConfiguration;