Skip to content

Commit

Permalink
simplfy logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendtxealth committed Nov 28, 2023
1 parent 308a976 commit aea3717
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/utils/src/schema/retrieveSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import isEqual from 'lodash/isEqual';
import set from 'lodash/set';
import times from 'lodash/times';
import transform from 'lodash/transform';
import merge from 'lodash/merge';
import flattenDeep from 'lodash/flattenDeep';
import uniq from 'lodash/uniq';
import mergeAllOf, { Options } from 'json-schema-merge-allof';
Expand Down Expand Up @@ -278,7 +277,7 @@ export function resolveAllReferences<S extends StrictRJSFSchema = RJSFSchema>(
},
{} as RJSFSchema
);
merge(recurseList, uniq(flattenDeep(childrenLists)));
recurseList = uniq([...recurseList, ...flattenDeep(childrenLists)]);
resolvedSchema = { ...resolvedSchema, [PROPERTIES_KEY]: updatedProps };
}

Expand Down

0 comments on commit aea3717

Please sign in to comment.