File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/core/plugins/oas3/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ export default class Servers extends React.Component {
2121 return
2222 }
2323
24- //fire 'change' event to set default 'value' of select
25- this . setServer ( servers . first ( ) . get ( "url" ) )
24+ // fire 'change' event to set default 'value' of select
25+ this . setServer ( servers . first ( ) ? .get ( "url" ) )
2626 }
2727
2828 UNSAFE_componentWillReceiveProps ( nextProps ) {
@@ -95,7 +95,7 @@ export default class Servers extends React.Component {
9595 } = this . props
9696
9797
98- let currentServerDefinition = servers . find ( v => v . get ( "url" ) === currentServer ) || OrderedMap ( )
98+ let currentServerDefinition = servers . find ( s => s . get ( "url" ) === currentServer ) || OrderedMap ( )
9999
100100 let currentServerVariableDefs = currentServerDefinition . get ( "variables" ) || OrderedMap ( )
101101
You can’t perform that action at this time.
0 commit comments