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
  • Loading branch information
eselkin committed Nov 7, 2024
1 parent 75b5d7f commit d0d5f2e
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 d0d5f2e

Please sign in to comment.