From 913c607030a32742fcd6e72cfe0557b329583173 Mon Sep 17 00:00:00 2001
From: Phil Hughes <me@iamphill.com>
Date: Thu, 19 Apr 2018 16:54:54 +0100
Subject: added spec to ide_side_bar

---
 app/assets/javascripts/ide/components/ide_tree.vue | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'app/assets/javascripts/ide/components/ide_tree.vue')

diff --git a/app/assets/javascripts/ide/components/ide_tree.vue b/app/assets/javascripts/ide/components/ide_tree.vue
index 705f91ea6aa..ed83bf4109b 100644
--- a/app/assets/javascripts/ide/components/ide_tree.vue
+++ b/app/assets/javascripts/ide/components/ide_tree.vue
@@ -21,10 +21,9 @@ export default {
 
 <template>
   <div
-    v-if="currentTree"
     class="ide-file-list"
   >
-    <template v-if="currentTree.loading">
+    <template v-if="!currentTree || currentTree.loading">
       <div
         class="multi-file-loading-container"
         v-for="n in 3"
-- 
cgit v1.2.1

