forked from rc/aircox
		
	models -> items bug
This commit is contained in:
		@ -67,7 +67,7 @@ export default class Model {
 | 
			
		||||
     * @param {Array} items: array of data
 | 
			
		||||
     * @param {Object} options: options passed down to all model instances
 | 
			
		||||
     */
 | 
			
		||||
    static fromList(items, options=null) {
 | 
			
		||||
    static fromList(items, options={}) {
 | 
			
		||||
        return items ? items.map(d => new this(d, options)) : []
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user