From 7b32ccd93375a9fffd12d9ed7ace473a599f22b7 Mon Sep 17 00:00:00 2001 From: Aina Sitraka <35221835+aynsix@users.noreply.github.com> Date: Tue, 21 Jan 2025 17:58:27 +0300 Subject: [PATCH] fix advanced search status (#4579) Co-authored-by: jygaulier --- Phraseanet-production-client/dist/production.js | 2 +- Phraseanet-production-client/dist/production.min.js | 2 +- Phraseanet-production-client/src/components/search/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Phraseanet-production-client/dist/production.js b/Phraseanet-production-client/dist/production.js index dba6476d56..be8a2e8fe4 100644 --- a/Phraseanet-production-client/dist/production.js +++ b/Phraseanet-production-client/dist/production.js @@ -69228,7 +69228,7 @@ var search = function search(services) { _.each(_tmpStat, function (v, sbas_id) { var status = []; _.each(v, function (v, sb_index) { - if (v !== -1) { + if (!_.isUndefined(v) && v !== -1) { // ignore both checked status.push({ 'index': sb_index, diff --git a/Phraseanet-production-client/dist/production.min.js b/Phraseanet-production-client/dist/production.min.js index dba6476d56..be8a2e8fe4 100644 --- a/Phraseanet-production-client/dist/production.min.js +++ b/Phraseanet-production-client/dist/production.min.js @@ -69228,7 +69228,7 @@ var search = function search(services) { _.each(_tmpStat, function (v, sbas_id) { var status = []; _.each(v, function (v, sb_index) { - if (v !== -1) { + if (!_.isUndefined(v) && v !== -1) { // ignore both checked status.push({ 'index': sb_index, diff --git a/Phraseanet-production-client/src/components/search/index.js b/Phraseanet-production-client/src/components/search/index.js index 579ca8c8bb..9bdc996cdd 100644 --- a/Phraseanet-production-client/src/components/search/index.js +++ b/Phraseanet-production-client/src/components/search/index.js @@ -491,7 +491,7 @@ const search = services => { _.each(_tmpStat, function (v, sbas_id) { var status = []; _.each(v, function (v, sb_index) { - if (v !== -1) { + if (!_.isUndefined(v) && v !== -1) { // ignore both checked status.push({ 'index': sb_index,