diff --git a/src/renderer/src/stories/JSONSchemaForm.js b/src/renderer/src/stories/JSONSchemaForm.js index 88c03a07e..6be7a4cbd 100644 --- a/src/renderer/src/stories/JSONSchemaForm.js +++ b/src/renderer/src/stories/JSONSchemaForm.js @@ -495,8 +495,9 @@ export class JSONSchemaForm extends LitElement { // Allow referring to floats as null (i.e. JSON NaN representation) if (e.message === "is not of a type(s) number") { - if ((resolvedValue === "NaN") | (resolvedValue === null)) return; - else if (isRow) e.message = `${e.message}. ${templateNaNMessage}`; + if (resolvedValue === "NaN") return; + else if (resolvedValue === null) { + } else if (isRow) e.message = `${e.message}. ${templateNaNMessage}`; } const prevHeader = name ? header(name) : "Row";