Skip to content

Commit 4eadf04

Browse files
gkelloggdavidlehn
authored andcommitted
Simplify check for list frame.
1 parent d011728 commit 4eadf04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/frame.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ api.frame = (state, subjects, frame, parent, property = null) => {
234234

235235
// recurse into list
236236
if(graphTypes.isList(o)) {
237-
const subframe = (frame[prop] && types.isObject(frame[prop][0]) ?
238-
(frame[prop][0]['@list'] || _createImplicitFrame(flags)) :
239-
_createImplicitFrame(flags));
237+
const subframe = (frame[prop] && frame[prop][0] && frame[prop][0]['@list']) ?
238+
frame[prop][0]['@list'] :
239+
_createImplicitFrame(flags);
240240

241241
// add empty list
242242
const list = {'@list': []};

0 commit comments

Comments
 (0)