Skip to content

Commit 3ceaf0c

Browse files
committed
CONSOLE-338 Raml expander error
1 parent d1ee4ba commit 3ceaf0c

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
@@ -3408,7 +3408,7 @@
34083408
}
34093409

34103410
function extractArrayType(arrayNode) {
3411-
if(arrayNode.items.type) { return arrayNode.items.type[0]; }
3411+
if(arrayNode.items && arrayNode.items.type) { return arrayNode.items.type[0]; }
34123412
return arrayNode.items;
34133413
}
34143414

src/app/factories/raml-expander.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848

4949
function extractArrayType(arrayNode) {
50-
if(arrayNode.items.type) { return arrayNode.items.type[0]; }
50+
if(arrayNode.items && arrayNode.items.type) { return arrayNode.items.type[0]; }
5151
return arrayNode.items;
5252
}
5353

0 commit comments

Comments
 (0)