Skip to content

Commit

Permalink
Rename spec selector
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefHaggy committed Nov 25, 2024
1 parent 5a933a2 commit dbdb371
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class ModelWrapper extends Component {
}

const name = this.getModelName(schema.get("$$ref"))
const schemaMap = specSelectors.getSchemaMap().toJS()
const schemaMap = specSelectors.getParentToChildMap().toJS()
const discriminator = schema.get("discriminator")

const options = this.buildSchemaOptions(name, discriminator, schemaMap)
Expand Down
2 changes: 1 addition & 1 deletion src/core/plugins/spec/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const specResolved = createSelector(
spec => spec.get("resolved", Map())
)

export const getSchemaMap = createSelector(
export const getParentToChildMap = createSelector(
state,
spec => spec.get("parentToChildMap", Map())
)
Expand Down

0 comments on commit dbdb371

Please sign in to comment.