We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc90adb commit 57ca4e0Copy full SHA for 57ca4e0
.changeset/six-camels-joke.md
@@ -0,0 +1,5 @@
1
+---
2
+"gitbook": patch
3
4
+
5
+Fix a crash when a page contains a block of an integration that is no longer installed
packages/gitbook/src/components/DocumentView/Integration/IntegrationBlock.tsx
@@ -34,7 +34,11 @@ export async function IntegrationBlock(props: BlockProps<DocumentBlockIntegratio
34
dataFetcher.renderIntegrationUi({
35
integrationName: block.data.integration,
36
request: initialInput,
37
- })
+ }),
38
39
+ // The API can respond with a 400 error if the integration is not installed
40
+ // and 404 if the integration is not found.
41
+ [404, 400]
42
);
43
if (!initialOutput || initialOutput.type === 'complete') {
44
return null;
0 commit comments