Skip to content

Commit

Permalink
fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefHaggy committed Nov 27, 2024
1 parent 7870ef8 commit 0db7da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/plugins/spec/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export const getParentToChildMap = createSelector(
specJS,
spec => {
const schemaMap = {}
const schemas = spec?.components?.schemas;
if (!!schemas) {
const schemas = spec?.components?.schemas
if (schemas) {
Object.entries(schemas).forEach(([schemaName, schema]) => {
if (schema.allOf) {
schema.allOf.forEach(item => {
Expand Down

0 comments on commit 0db7da8

Please sign in to comment.