Skip to content

Commit

Permalink
fix(swagger-ui-react): fix default value for spec prop (#9025)
Browse files Browse the repository at this point in the history
Default value must be set to  (empty string) and
not to {} (empty object).

Refs #8976
  • Loading branch information
char0n committed Jul 17, 2023
1 parent 89f04d3 commit 990ff7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flavors/swagger-ui-react/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ SwaggerUI.propTypes = {
}

SwaggerUI.defaultProps = {
spec: {},
spec: "",
url: "",
layout: "BaseLayout",
requestInterceptor: req => req,
Expand Down

0 comments on commit 990ff7d

Please sign in to comment.