From 60ee66768887ad736b95aebd1c7fd6075a7ab372 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Thu, 7 Dec 2017 17:07:30 -0800 Subject: [PATCH] Linter & test harness fixes --- src/core/components/object-model.jsx | 2 ++ src/core/components/operation.jsx | 5 +++-- test/components/object-model.js | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/components/object-model.jsx b/src/core/components/object-model.jsx index f13f6ecd..a20ce406 100644 --- a/src/core/components/object-model.jsx +++ b/src/core/components/object-model.jsx @@ -22,6 +22,8 @@ export default class ObjectModel extends Component { let { schema, name, isRef, getComponent, getConfigs, depth, specPath, expandDepth, ...otherProps } = this.props let { specSelectors } = otherProps + const { isOAS3 } = specSelectors + if(!schema) { return null } diff --git a/src/core/components/operation.jsx b/src/core/components/operation.jsx index 507f25eb..1369411a 100644 --- a/src/core/components/operation.jsx +++ b/src/core/components/operation.jsx @@ -59,7 +59,6 @@ export default class Operation extends PureComponent { let { isShown, isAuthorized, - jumpToKey, path, method, op, @@ -114,8 +113,10 @@ export default class Operation extends PureComponent { let onChangeKey = [ path, method ] // Used to add values to _this_ operation ( indexed by path and method ) return ( +
+ {/*TODO: convert this into a component, that can be wrapped + and pulled in with getComponent */}
-
/*TODO: convert this into a component, that can be wrapped and pulled in with getComponent */} {method.toUpperCase()} ", function() { } }, isRef : false, + specPath: [], schema: Immutable.fromJS( { "properties": {