Commit a042dca5 authored by Zhou Fang's avatar Zhou Fang Committed by Martin Lowe
Browse files

updated front end to work with new wg data

parent 482a7295
......@@ -42,7 +42,7 @@ const ParticipationLevel = ({
// extract all the participation_levels
const optionsForParticipationLevels = temp?.participation_levels
? temp?.participation_levels.map((item) => item.level)
? temp?.participation_levels.map((item) => item.description)
: [];
// the Set will deduplicate participation_levels options
......
......@@ -77,8 +77,8 @@ const WorkingGroupsWrapper = ({ formik, isStartNewForm }) => {
})
.then((data) => {
let options = data.map((item) => ({
label: item.name,
value: item.name,
label: item.title,
value: item.title,
participation_levels: item.levels,
}));
setFullWorkingGroupList(options);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment