Skip to content

Commit 1f3701d

Browse files
committed
fix: fix oneOf title for array
1 parent ff3bb24 commit 1f3701d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Schema/OneOfSchema.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ export class OneOfButton extends React.PureComponent<OneOfButtonProps> {
1919
const { idx, schema, subSchema } = this.props;
2020
return (
2121
<StyledOneOfButton active={idx === schema.activeOneOf} onClick={this.activateOneOf}>
22-
{subSchema.title || subSchema.displayType}
22+
{subSchema.title || subSchema.typePrefix + subSchema.displayType}
2323
</StyledOneOfButton>
2424
);
2525
}
2626

27-
activateOneOf() {
27+
activateOneOf = () => {
2828
this.props.schema.activateOneOf(this.props.idx);
29-
}
29+
};
3030
}
3131

3232
@observer

0 commit comments

Comments
 (0)