@ -14,9 +14,9 @@ module.exports = {
am.onSelect(opts.onSelect);
if (!this.rendered || types) {
let assets = am.getAll();
let assets = am.getAll().filter(i => 1);
if (types) {
if (types && types.length) {
assets = assets.filter(a => types.indexOf(a.get('type')) !== -1);
}