Skip to content

Commit c84202c

Browse files
committed
Pass empty object to guard the case when options.swaggerOptions is undefined
1 parent 4764d33 commit c84202c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/javascript/view/OperationView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
313313
if (isFileUpload) {
314314
return this.handleFileUpload(map, form);
315315
} else {
316-
return this.model.execute(map, this.options.swaggerOptions, this.showCompleteStatus, this.showErrorStatus);
316+
return this.model.execute(map, this.options.swaggerOptions || {}, this.showCompleteStatus, this.showErrorStatus, this);
317317
}
318318
}
319319
},

0 commit comments

Comments
 (0)