From a6afb46808a3caa7424c09687d80ed658015c995 Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Wed, 3 Feb 2016 09:28:01 -0600 Subject: [PATCH] fix(geography): don't cycle if we don't have any components --- addon/mixins/occlusion-collection.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addon/mixins/occlusion-collection.js b/addon/mixins/occlusion-collection.js index c2be287..cf7c444 100644 --- a/addon/mixins/occlusion-collection.js +++ b/addon/mixins/occlusion-collection.js @@ -464,6 +464,10 @@ export default Mixin.create({ const edges = this.get('_edges'); const childComponents = this.get('children'); + if (!get(childComponents, 'length')) { + return; + } + if (this._isFirstRender) { if (this.get('renderAllInitially')) { childComponents.forEach((i) => {