Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Fix vite dev server
- Assign `globalThis` to window.global to fix issue in semantic
- ajv-formats `addFormats` should not be called with a nullish value
  • Loading branch information
nickgros committed Nov 4, 2022
1 parent 914f0a1 commit 47b8b4b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,11 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
should change the heading of the (upcoming) version to include a major version bump.
-->
# 5.0.0-beta.13

## @rjsf/playground
- Fix Vite development server [#3228](https://github.com/rjsf-team/react-jsonschema-form/issues/3228)

# 5.0.0-beta.12

## @rjsf/antd
Expand Down
1 change: 1 addition & 0 deletions packages/playground/index.html
Expand Up @@ -9,6 +9,7 @@
rel="stylesheet"
href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
/>
<script>window.global = globalThis</script>
</head>
<body>
<div id="app"></div>
Expand Down
3 changes: 2 additions & 1 deletion packages/validator-ajv8/src/createAjvInstance.ts
Expand Up @@ -35,7 +35,8 @@ export default function createAjvInstance(
AjvClass: typeof Ajv = Ajv
) {
const ajv = new AjvClass({ ...AJV_CONFIG, ...ajvOptionsOverrides });
if (typeof ajvFormatOptions !== "boolean") {
if (ajvFormatOptions && typeof ajvFormatOptions !== "boolean") {
console.log(ajvFormatOptions);
addFormats(ajv, ajvFormatOptions);
}

Expand Down

0 comments on commit 47b8b4b

Please sign in to comment.