From 7b4dfce3acccc9f2723de9f0aad5602c14356c2e Mon Sep 17 00:00:00 2001 From: KevinDavilaDotCMS <144152756+KevinDavilaDotCMS@users.noreply.github.com> Date: Thu, 8 Feb 2024 14:41:15 -0500 Subject: [PATCH] fix(edit-ema): Fixed behaviour on select contentlet --- .../main/webapp/html/js/dotcms/dijit/form/ContentSelector.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dotCMS/src/main/webapp/html/js/dotcms/dijit/form/ContentSelector.js b/dotCMS/src/main/webapp/html/js/dotcms/dijit/form/ContentSelector.js index 3a890b9b0f3e..9a15e9650bf3 100644 --- a/dotCMS/src/main/webapp/html/js/dotcms/dijit/form/ContentSelector.js +++ b/dotCMS/src/main/webapp/html/js/dotcms/dijit/form/ContentSelector.js @@ -1289,8 +1289,7 @@ dojo.declare( dojo.parser.parse(this.results_table); if (this.multiple == 'false') { - for (var i = 0; i < data.length; i++) { - var asset = data[i]; + data.map(asset => { var selectButton = dojo.byId( this.searchCounter + asset.inode ); @@ -1300,7 +1299,7 @@ dojo.declare( selected(this, asset); }); } - } + }) } // Header based sorting functionality