fix: avoid rendering empty response schemas (#9667)
Refs #9666 Co-authored-by: Pierre Paysant-Le Roux <ppaysant@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ export default class ModelExample extends React.Component {
|
||||
|
||||
constructor(props, context) {
|
||||
super(props, context)
|
||||
let { getConfigs, isExecute } = this.props
|
||||
let { getConfigs, isExecute, schema } = this.props
|
||||
let { defaultModelRendering } = getConfigs()
|
||||
|
||||
let activeTab = defaultModelRendering
|
||||
@@ -28,6 +28,10 @@ export default class ModelExample extends React.Component {
|
||||
activeTab = "example"
|
||||
}
|
||||
|
||||
if (!schema) {
|
||||
activeTab = "example"
|
||||
}
|
||||
|
||||
if(isExecute) {
|
||||
activeTab = "example"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user