From 740c4f0a83df6058e2a0337564fc342f759bf62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Tue, 21 Nov 2023 12:23:33 +0100 Subject: [PATCH] fixed 'uniques' list selector support for nested atomic lists --- HISTORY.md | 3 ++- src/threads.js | 13 ++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 0f14e59f25..5b7e2373c0 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,11 +2,12 @@ ## in development: * **Notable Fixes:** - * fixed 'distribution' list selector support for nested atomic lists + * fixed 'distribution' and 'unique' list selectors support for nested atomic lists 2023-11-21 * new dev version for v9.0.14 * threads: fixed 'distribution' list selector support for nested atomic lists +* threads: fixed 'uniques' list selector support for nested atomic lists ## 9.0.13: * **Notable Fixes:** diff --git a/src/threads.js b/src/threads.js index 0f7f32cd20..37aa93e058 100644 --- a/src/threads.js +++ b/src/threads.js @@ -2278,15 +2278,10 @@ Process.prototype.reportListAttribute = function (choice, list) { case 'uniques': this.assertType(list, 'list'); if (list.canBeCSV()) { - if (Process.prototype.isCaseInsensitive) { - return list.map(row => row instanceof List ? - row.map(cell => - cell.toString().toLowerCase() - ) - : row.toString().toLowerCase() - ).distribution().columns().at(1); - } - return list.distribution().columns().at(1); + return this.reportListAttribute( + 'distribution', + list + ).columns().at(1); } return this.reportUniqueValues(list); case 'distribution':