Skip to content

Commit 4aa6cbc

Browse files
committed
Fix lint errors
1 parent dbdb371 commit 4aa6cbc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/core/plugins/json-schema-5/components/model-wrapper.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default class ModelWrapper extends Component {
1212
getComponent: PropTypes.func.isRequired,
1313
getConfigs: PropTypes.func.isRequired,
1414
specSelectors: PropTypes.object.isRequired,
15+
specActions: PropTypes.object.isRequired,
1516
expandDepth: PropTypes.number,
1617
layoutActions: PropTypes.object,
1718
layoutSelectors: PropTypes.object.isRequired,
@@ -110,7 +111,7 @@ export default class ModelWrapper extends Component {
110111
let { getComponent, getConfigs, schema, specSelectors } = this.props
111112
const Model = getComponent("Model")
112113

113-
let expanded;
114+
let expanded
114115
if(this.props.layoutSelectors) {
115116
expanded = this.props.layoutSelectors.isShown(this.props.fullPath)
116117
}

src/core/plugins/oas31/components/model/model.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ const Model = forwardRef(
4545

4646
Model.propTypes = {
4747
schema: ImPropTypes.map.isRequired,
48+
name: PropTypes.string,
49+
specSelectors: PropTypes.func.isRequired,
4850
getComponent: PropTypes.func.isRequired,
4951
onToggle: PropTypes.func,
5052
}

src/core/plugins/spec/actions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function getParentToChildMap(json){
6363
schema.allOf.forEach(item => {
6464
if (item.$ref) {
6565
// Extract parent schema name from $ref
66-
const parentName = item.$ref.split('/').pop()
66+
const parentName = item.$ref.split("/").pop()
6767
// Add current schema as child of parent
6868
if (!schemaMap.has(parentName)) {
6969
schemaMap.set(parentName, [])
@@ -74,7 +74,7 @@ function getParentToChildMap(json){
7474
}
7575
})
7676
}
77-
return schemaMap;
77+
return schemaMap
7878
}
7979

8080
export function updateJsonSpec(json) {

0 commit comments

Comments
 (0)