Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for issue josdejong#1111 (josdejong#1116)
Fixes enum dropdown not showing when using patternProperties for schema. The issue happens as `_findSchema` is recursively called one more than than it should. Instead of returning the nested schema object (eg. `{ enum: [1, 2, 3] }`), it returns the parent object, eg.: ```javascript { type: 'object', properties: { testrigId: { enum: [1, 2, 3] }, }, required: [ 'testrigId' ] } ``` The fix adds an if check to ignore the additional recursive call and return the correct object. The unit tests pass and I've also tested a complex schema inside `patternProperties` that uses the special types (boolean, color, enum).
- Loading branch information