From 990ff7d3f2bd37d86b2ff0100a4e206a04b5c12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Gorej?= Date: Mon, 17 Jul 2023 10:24:36 +0200 Subject: [PATCH] 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 --- flavors/swagger-ui-react/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flavors/swagger-ui-react/index.jsx b/flavors/swagger-ui-react/index.jsx index ce3be7a9feb..05a1aab86df 100644 --- a/flavors/swagger-ui-react/index.jsx +++ b/flavors/swagger-ui-react/index.jsx @@ -124,7 +124,7 @@ SwaggerUI.propTypes = { } SwaggerUI.defaultProps = { - spec: {}, + spec: "", url: "", layout: "BaseLayout", requestInterceptor: req => req,