Merge pull request #8940 from SDA-SE/fix/api-docs-url

fix(api-docs): set url explicitly to an empty string
This commit is contained in:
Fredrik Adelöw
2022-01-14 18:57:19 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-api-docs': patch
---
Using an explicitly empty string for the url argument ensures that the swagger UI does not run into undefined errors.
@@ -148,7 +148,7 @@ export const OpenApiDefinition = ({ definition }: OpenApiDefinitionProps) => {
return (
<div className={classes.root}>
<SwaggerUI spec={def} deepLinking />
<SwaggerUI spec={def} url="" deepLinking />
</div>
);
};