Browse Source

ensure is an array

Kieran Gibb 2 years ago
parent
commit
5cd6eb800e
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      index.js

+ 1
- 1
index.js View File

@@ -20,7 +20,7 @@ class GroupStore {
20 20
     this._readyCallback = thunky(this._ready.bind(this))
21 21
   }
22 22
 
23
-  seed (collection) {
23
+  seed (collection = []) {
24 24
     collection.forEach((_opts, i) => {
25 25
       this._cache(this._build(_opts))
26 26
     })