From 57ccf1f28f46dfe53373a96062b3dd96f856a7ad Mon Sep 17 00:00:00 2001 From: Mark Bouslog Date: Wed, 4 Dec 2024 11:16:14 -0600 Subject: [PATCH] Fix survey task FilterStatus image src (#6512) --- .../CharacteristicsFilter/FilterStatus/FilterStatus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lib-classifier/src/plugins/tasks/survey/components/components/Chooser/components/CharacteristicsFilter/FilterStatus/FilterStatus.js b/packages/lib-classifier/src/plugins/tasks/survey/components/components/Chooser/components/CharacteristicsFilter/FilterStatus/FilterStatus.js index 566ee228fa..8d7d604308 100644 --- a/packages/lib-classifier/src/plugins/tasks/survey/components/components/Chooser/components/CharacteristicsFilter/FilterStatus/FilterStatus.js +++ b/packages/lib-classifier/src/plugins/tasks/survey/components/components/Chooser/components/CharacteristicsFilter/FilterStatus/FilterStatus.js @@ -103,9 +103,9 @@ export default function FilterStatus ({ onOpen={handleFilterDropOpen} /> {selectedCharacteristicIds.map(characteristicId => { - const characteristic = characteristics?.[characteristicId] || {} + const characteristic = characteristics?.get(characteristicId) || {} const selectedValueId = filters?.[characteristicId] || '' - const value = characteristic.values?.[selectedValueId] || {} + const value = characteristic.values?.get(selectedValueId) || {} const valueImageSrc = images?.get(value.image) || '' const label = strings.get(`characteristics.${characteristicId}.values.${selectedValueId}.label`) function clearSelection() {