We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3bb24 commit 1f3701dCopy full SHA for 1f3701d
src/components/Schema/OneOfSchema.tsx
@@ -19,14 +19,14 @@ export class OneOfButton extends React.PureComponent<OneOfButtonProps> {
19
const { idx, schema, subSchema } = this.props;
20
return (
21
<StyledOneOfButton active={idx === schema.activeOneOf} onClick={this.activateOneOf}>
22
- {subSchema.title || subSchema.displayType}
+ {subSchema.title || subSchema.typePrefix + subSchema.displayType}
23
</StyledOneOfButton>
24
);
25
}
26
27
- activateOneOf() {
+ activateOneOf = () => {
28
this.props.schema.activateOneOf(this.props.idx);
29
- }
+ };
30
31
32
@observer
0 commit comments