Skip to content

Commit

Permalink
BAU: Fix journey map checkboxes
Browse files Browse the repository at this point in the history
The structure of the journey maps has changed recently - the states are
now defined under a `states` key. The logic to generate the options for
the checkboxes needed updating to look for the states there.
  • Loading branch information
Wynndow committed May 8, 2024
1 parent 76738cb commit c481ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion journey-map/public/render.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const getOptions = (journeyMaps) => {
const featureFlagOptions = [];

Object.values(journeyMaps).forEach((journeyMap) => {
Object.values(journeyMap).forEach((definition) => {
Object.values(journeyMap.states).forEach((definition) => {
const events = definition.events || definition.exitEvents || {};
Object.values(events).forEach((def) => {
addDefinitionOptions(def, disabledOptions, featureFlagOptions);
Expand Down

0 comments on commit c481ddb

Please sign in to comment.