Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit a5d4ae0

Browse files
committed
bad change
1 parent 16508e2 commit a5d4ae0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

frontend/Store.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,7 @@ class Store extends EventEmitter {
353353
if (up) {
354354
return this._parents.get(id);
355355
}
356-
var children = node.get('children');
357-
if ('string' === typeof children) {
358-
return children;
359-
}
360-
return children[0];
356+
return node.get('children')[0];
361357
}
362358

363359
off(evt: string, fn: ListenerFunction): void {

0 commit comments

Comments
 (0)