title: Cannot read property 'length' of undefined"
body: <p>I am getting the error below. The weird part is that I'm positive the data is there because in my vue add on I can see that it successfully grabs the information from the vuex store. My initial guess is that somehow the data is not yet grabbed from the store, at the point that it creates the template?</p>
  
  <pre><code>Vue warn]: Error in render: "TypeError: Cannot read property 'length' of undefined"
  </code></pre>
  
  <p><strong>The data:</strong> 'spaces' is grabbed from the store.</p>
  
  <pre><code>    export default {
          name: "myspaces",
          data() {
              return {
                  filterMaxLength: 3,
                  selectedSpace: 0,
                  selectedRoom: 0
              }
          },
          created() {
              // Default selected space (first in json)
              this.selectedSpace = this.spaces[0].id;
  
              // Default selected room (first in json)
              this.selectedRoom = this.spaces[0].rooms[0].id;
          },
          computed: {
              // Get 'spaces' from store.
              ...mapState([
                  'spaces'
              ])
      }
  </code></pre>
  
  <p><strong>Template:</strong></p>
  
  <pre><code>&lt;template&gt;
        &lt;div&gt;  
           &lt;v-flex v-if="spaces.length &lt; filterMaxLength"&gt;
                &lt;v-btn v-for="space in spaces"&gt;
                   &lt;h4&gt; {{space.name}} &lt;/h4&gt;
                &lt;/v-btn&gt;
           &lt;/v-flex&gt;
       &lt;/div&gt;
  &lt;template&gt;
  </code></pre>
  
  <p><strong>The store:</strong></p>
  
  <pre><code>    import Vuex from 'vuex'
  
  Vue.use(Vuex);
  
  export default new Vuex.Store({
      state: {
          spaces:[
              {
                  id:1,
                  name:'House in Amsterdam',
                  rooms:[
                      {
                          id:1,
                          name:'Bedroom Otto',
                      },
                      {
                          id:2,
                          name:'Bedroom Mischa'
                      }
                  ]
              },
              {
                  id:2,
                  name:'Office in Amsterdam',
                  rooms:[
                      {
                          id:1,
                          name:'Office 1',
                      },
                      {
                          id:2,
                          name:'Office 2'
                      }
                  ]
              }
          ]} });
  </code></pre>
  
  <p><strong>The vue chrome add on says this information is in the component:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/H3hZ8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/H3hZ8.png" alt="enter image description here"></a></p>