- {!!applicableFragments
+ {applicableFragments
? applicableFragments.map(fragment => {
const type = schema.getType(
fragment.typeCondition.name.value,
@@ -1952,6 +1970,7 @@ class FieldView extends React.PureComponent<
schema={schema}
getDefaultFieldNames={getDefaultFieldNames}
getDefaultScalarArgValue={this.props.getDefaultScalarArgValue}
+ scalarInputsPluginManager={this.props.scalarInputsPluginManager}
makeDefaultArg={this.props.makeDefaultArg}
onRunOperation={this.props.onRunOperation}
styleConfig={this.props.styleConfig}
@@ -1974,6 +1993,7 @@ class FieldView extends React.PureComponent<
getDefaultScalarArgValue={
this.props.getDefaultScalarArgValue
}
+ scalarInputsPluginManager={this.props.scalarInputsPluginManager}
makeDefaultArg={this.props.makeDefaultArg}
onRunOperation={this.props.onRunOperation}
styleConfig={this.props.styleConfig}
@@ -2025,7 +2045,7 @@ let parseQueryMemoize: ?[string, DocumentNode] = null;
function memoizeParseQuery(query: string): DocumentNode {
if (parseQueryMemoize && parseQueryMemoize[0] === query) {
return parseQueryMemoize[1];
- } else {
+ }
const result = parseQuery(query);
if (!result) {
return DEFAULT_DOCUMENT;
@@ -2033,14 +2053,14 @@ function memoizeParseQuery(query: string): DocumentNode {
if (parseQueryMemoize) {
// Most likely a temporarily invalid query while they type
return parseQueryMemoize[1];
- } else {
+ }
return DEFAULT_DOCUMENT;
- }
- } else {
+
+ }
parseQueryMemoize = [query, result];
return result;
- }
- }
+
+
}
const defaultStyles = {
@@ -2238,7 +2258,7 @@ class RootView extends React.PureComponent<
onChange={this._onOperationRename}
/>
- {!!this.props.onTypeName ? (
+ {this.props.onTypeName ? (
{`on ${this.props.onTypeName}`}
@@ -2246,7 +2266,7 @@ class RootView extends React.PureComponent<
) : (
''
)}
- {!!this.state.displayTitleActions ? (
+ {this.state.displayTitleActions ? (