do not throw error when checking for initial checking of copilot enablement (#1693)
This commit is contained in:
parent
1aa4c18119
commit
b9cbfc924f
|
@ -93,7 +93,7 @@ export const getCopilotEnabled = async (): Promise<boolean> => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!response?.ok) {
|
if (!response?.ok) {
|
||||||
throw new Error(await response?.text());
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const copilotPortalConfiguration = (await response?.json()) as CopilotEnabledConfiguration;
|
const copilotPortalConfiguration = (await response?.json()) as CopilotEnabledConfiguration;
|
||||||
|
|
Loading…
Reference in New Issue