Browse Source

Fix default types in `open-assets` command. Closes #1411

pull/1446/head
Artur Arseniev 8 years ago
parent
commit
7226625403
  1. 4
      src/commands/view/OpenAssets.js

4
src/commands/view/OpenAssets.js

@ -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);
}

Loading…
Cancel
Save