fix(api-docs): set url explicitly to an empty string

The url argument is undefined when it is not explicitly set to an empty string. An undefined url is
causing the swagger UI to fail on match checks.

fixes #8895

Signed-off-by: Dominik Schwank <dominik.schwank@sda.se>
This commit is contained in:
Dominik Schwank
2022-01-14 18:16:54 +01:00
parent 2a13ac8902
commit cd4e3c4d4e
2 changed files with 6 additions and 1 deletions
@@ -148,7 +148,7 @@ export const OpenApiDefinition = ({ definition }: OpenApiDefinitionProps) => {
return (
<div className={classes.root}>
<SwaggerUI spec={def} deepLinking />
<SwaggerUI spec={def} url="" deepLinking />
</div>
);
};