Skip to content

Commit ff8af39

Browse files
committed
Fix clear when overriding fields
1 parent f957e64 commit ff8af39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/scripts/api-console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346

347347
if (responses) {
348348
Object.keys(responses).map(function (key) {
349-
if(typeof responses[key].body !== 'undefined') {
349+
if(responses[key] && typeof responses[key].body !== 'undefined') {
350350
responseInfo[key] = {};
351351

352352
Object.keys(responses[key].body).sort().reverse().map(function (type) {

src/app/directives/method-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
if (responses) {
3333
Object.keys(responses).map(function (key) {
34-
if(typeof responses[key].body !== 'undefined') {
34+
if(responses[key] && typeof responses[key].body !== 'undefined') {
3535
responseInfo[key] = {};
3636

3737
Object.keys(responses[key].body).sort().reverse().map(function (type) {

0 commit comments

Comments
 (0)