Skip to content

Commit feef20d

Browse files
authored
fix: deeplinked operation resolution (#4281)
* Use `parameterWithMeta` to get parameter data in <ParameterRow> * Prefer specPath when fetching resolved subtrees in OperationContainer * Add test for OAS3 callback rendering * Remove debugger statement * Pass base resolution URL directly to Swagger-Client subtree resolver * Remove accidental comment * Migrate additional options * Don't default to empty Map when getting subtree
1 parent 4fd7f1d commit feef20d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/containers/OperationContainer.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ export default class OperationContainer extends PureComponent {
126126
} = this.props
127127

128128
if(specPath) {
129-
return specSelectors.specResolvedSubtree(specPath.toJS()) || Map()
129+
return specSelectors.specResolvedSubtree(specPath.toJS())
130130
}
131131

132-
return specSelectors.specResolvedSubtree(["paths", path, method]) || Map()
132+
return specSelectors.specResolvedSubtree(["paths", path, method])
133133
}
134134

135135
requestResolvedSubtree = () => {
@@ -182,10 +182,10 @@ export default class OperationContainer extends PureComponent {
182182

183183
const Operation = getComponent( "operation" )
184184

185-
const resolvedSubtree = this.getResolvedSubtree()
185+
const resolvedSubtree = this.getResolvedSubtree() || Map()
186186

187187
const operationProps = fromJS({
188-
op: resolvedSubtree || Map(),
188+
op: resolvedSubtree,
189189
tag,
190190
path,
191191
summary: unresolvedOp.getIn(["operation", "summary"]) || "",

0 commit comments

Comments
 (0)