fix: fix non-scalar query/path/header params are not expandable

fixes #561
This commit is contained in:
Roman Hotsiy 2018-07-17 15:46:39 +03:00
parent 8817d9c9db
commit dcca44a92d
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 5 additions and 3 deletions

View File

@ -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;
}

View File

@ -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,
@ -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();
};