Skip to content

Commit

Permalink
Merge pull request #44 from cvium/fix_library_content_type
Browse files Browse the repository at this point in the history
Remove filter from library collection type options
  • Loading branch information
joshuaboniface authored Jan 20, 2019
2 parents d241877 + a04ba7b commit 791d1ea
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/medialibrarycreator/medialibrarycreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ define(["loading", "dialogHelper", "dom", "jQuery", "components/libraryoptionsed
}

function getCollectionTypeOptionsHtml(collectionTypeOptions) {
return collectionTypeOptions.filter(function(i) {
return i.isSelectable
}).map(function(i) {
return '<option value="' + i.value + '">' + i.name + "</option>"
}).join("")
return collectionTypeOptions.map(function(i) {
return '<option value="' + i.value + '">' + i.name + "</option>";
}).join("");
}

function initEditor(page, collectionTypeOptions) {
Expand Down

0 comments on commit 791d1ea

Please sign in to comment.