fix: use null as a notSetValue for examplesForMediaType (via #5503)
* fix: use null as a notSetValue for examplesForMediaType fixes #5455 * tests!
This commit is contained in:
@@ -67,7 +67,7 @@ const RequestBody = ({
|
||||
|
||||
const mediaTypeValue = requestBodyContent.get(contentType, OrderedMap())
|
||||
const schemaForMediaType = mediaTypeValue.get("schema", OrderedMap())
|
||||
const examplesForMediaType = mediaTypeValue.get("examples", OrderedMap())
|
||||
const examplesForMediaType = mediaTypeValue.get("examples", null)
|
||||
|
||||
const handleExamplesSelect = (key /*, { isSyntheticChange } */) => {
|
||||
updateActiveExamplesKey(key)
|
||||
|
||||
Reference in New Issue
Block a user