Skip to content

Commit

Permalink
fix: fix oneOf title for array
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Feb 7, 2018
1 parent ff3bb24 commit 1f3701d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Schema/OneOfSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ export class OneOfButton extends React.PureComponent<OneOfButtonProps> {
const { idx, schema, subSchema } = this.props;
return (
<StyledOneOfButton active={idx === schema.activeOneOf} onClick={this.activateOneOf}>
{subSchema.title || subSchema.displayType}
{subSchema.title || subSchema.typePrefix + subSchema.displayType}
</StyledOneOfButton>
);
}

activateOneOf() {
activateOneOf = () => {
this.props.schema.activateOneOf(this.props.idx);
}
};
}

@observer
Expand Down

0 comments on commit 1f3701d

Please sign in to comment.