Skip to content

Commit

Permalink
Merge pull request #51 from hlxsites/fix-multiselect-log
Browse files Browse the repository at this point in the history
Fix multiselect log
  • Loading branch information
tmathern authored Aug 23, 2023
2 parents e056736 + 189aece commit f1603d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/aem-asset-selector/aem-asset-selector-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function getAssetSelector() {
function handleAssetSelection(selection, cfg) {
if (cfg) {
if (selection.length && cfg.onAssetSelected) {
if (selection.length > 0) {
if (selection.length > 1) {
logMessage('Multiple items received in selection, but only the first will be used');
}
cfg.onAssetSelected(selection[0]);
Expand Down

0 comments on commit f1603d9

Please sign in to comment.