fix(swagger-ui-react): fix default value for spec prop (#9025)
Default value must be set to (empty string) and
not to {} (empty object).
Refs #8976
This commit is contained in:
@@ -124,7 +124,7 @@ SwaggerUI.propTypes = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SwaggerUI.defaultProps = {
|
SwaggerUI.defaultProps = {
|
||||||
spec: {},
|
spec: "",
|
||||||
url: "",
|
url: "",
|
||||||
layout: "BaseLayout",
|
layout: "BaseLayout",
|
||||||
requestInterceptor: req => req,
|
requestInterceptor: req => req,
|
||||||
|
|||||||
Reference in New Issue
Block a user