From d0d5f2e15dff88a258c7d9fc93b373d05f29302e Mon Sep 17 00:00:00 2001 From: Eli Selkin <5606931+eselkin@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:13:39 -0800 Subject: [PATCH] Michelle M/Product is moving commonly treated conditions to comma separated values which are split here and trimmed for use in vets-website --- .../static-data-files/vaHealthcareServices/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/site/stages/build/drupal/static-data-files/vaHealthcareServices/index.js b/src/site/stages/build/drupal/static-data-files/vaHealthcareServices/index.js index 5e046b3561..2216591e01 100644 --- a/src/site/stages/build/drupal/static-data-files/vaHealthcareServices/index.js +++ b/src/site/stages/build/drupal/static-data-files/vaHealthcareServices/index.js @@ -80,10 +80,16 @@ const postProcess = queryResult => { description, fieldTricareDescription, } = service; + + const processedCommon = + fieldCommonlyTreatedCondition + ?.split(',') + .map(condition => condition.trim()) || []; + return [ name, fieldAlsoKnownAs, - fieldCommonlyTreatedCondition, + processedCommon, fieldHealthServiceApiId, fieldServiceTypeOfCare, fieldShowForVetCenters,