Skip to content

Commit

Permalink
Michelle M/Product is moving commonly treated conditions to comma sep…
Browse files Browse the repository at this point in the history
…arated values which are split here and trimmed for use in vets-website (#2347)
  • Loading branch information
eselkin authored Nov 7, 2024
1 parent 3fb0ab5 commit 0d0c681
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0d0c681

Please sign in to comment.