reference check for #2108
This commit is contained in:
@@ -26,7 +26,7 @@ SwaggerUi.partials.signature = (function () {
|
|||||||
|
|
||||||
// copy-pasted from swagger-js
|
// copy-pasted from swagger-js
|
||||||
var getInlineModel = function(inlineStr) {
|
var getInlineModel = function(inlineStr) {
|
||||||
if(/^Inline Model \d+$/.test(inlineStr)) {
|
if(/^Inline Model \d+$/.test(inlineStr) && this.inlineModels) {
|
||||||
var id = parseInt(inlineStr.substr('Inline Model'.length).trim(),10); //
|
var id = parseInt(inlineStr.substr('Inline Model'.length).trim(),10); //
|
||||||
var model = this.inlineModels[id];
|
var model = this.inlineModels[id];
|
||||||
return model;
|
return model;
|
||||||
|
|||||||
Reference in New Issue
Block a user