Skip to content

Commit a988f35

Browse files
authored
Fix bug in the JsonSchemaFormSuite component of the example (#20)
Fix bug in the JsonSchemaFormSuite component where the methods of the JSONInput children components where using the entire RJEA object instead of its json property.
1 parent 1a34978 commit a988f35

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

example/src/JsonSchemaFormSuite.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,7 @@ class JsonSchemaFormEditor extends React.Component<Props, State> {
268268
}
269269
locale={locale}
270270
height='550px'
271-
onChange={(data: any) =>
272-
this.updateSchema(JSON.stringify(data))
273-
}
271+
onChange={(data: any) => this.updateSchema(data.json)}
274272
/>
275273
</ErrorBoundary>
276274
<br />
@@ -298,9 +296,7 @@ class JsonSchemaFormEditor extends React.Component<Props, State> {
298296
}
299297
locale={locale}
300298
height='550px'
301-
onChange={(data: any) =>
302-
this.updateUISchema(JSON.stringify(data))
303-
}
299+
onChange={(data: any) => this.updateUISchema(data.json)}
304300
/>
305301
</ErrorBoundary>
306302
</div>

0 commit comments

Comments
 (0)