Skip to content

Commit

Permalink
fix: fix non-scalar query/path/header params are not expandable
Browse files Browse the repository at this point in the history
fixes #561
  • Loading branch information
RomanHotsiy committed Jul 17, 2018
1 parent 8817d9c commit dcca44a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common-elements/fields-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const PropertyCell = styled.td`
border-left-color: transparent;
}
tr:only-child > & {
tr.last:first-child > & {
background: none;
border-left-color: transparent;
}
Expand Down
6 changes: 4 additions & 2 deletions src/components/Fields/Field.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { observer } from 'mobx-react';
import * as React from 'react';
import { FieldDetails } from './FieldDetails';

import { ClickablePropertyNameCell, RequiredLabel } from '../../common-elements/fields';
import { FieldDetails } from './FieldDetails';

import {
InnerPropertiesWrap,
Expand All @@ -26,7 +27,8 @@ export interface FieldProps extends SchemaOptions {
renderDiscriminatorSwitch?: (opts: FieldProps) => JSX.Element;
}

export class Field extends React.PureComponent<FieldProps> {
@observer
export class Field extends React.Component<FieldProps> {
toggle = () => {
this.props.field.toggle();
};
Expand Down

0 comments on commit dcca44a

Please sign in to comment.