Commit f5168cb4 authored by PDuarte's avatar PDuarte

avaliability UI remove fix

parent 23a8e128
...@@ -118,7 +118,7 @@ const PlanAvaliability = ({dataElement, handleElmChange}) => { ...@@ -118,7 +118,7 @@ const PlanAvaliability = ({dataElement, handleElmChange}) => {
}) })
let coValues let coValues
if (actionValue === 'permit') { if (actionValue === 'permit') {
coValues = denytGeo.map(elm => { coValues = denytGeo.filter(q => !!q).map(elm => {
return { return {
id: elm.value, id: elm.value,
name: elm.label, name: elm.label,
...@@ -129,8 +129,10 @@ const PlanAvaliability = ({dataElement, handleElmChange}) => { ...@@ -129,8 +129,10 @@ const PlanAvaliability = ({dataElement, handleElmChange}) => {
} }
} }
}) })
} else { } else {
coValues = permitGeo.map(elm => { console.log(permitGeo)
coValues = permitGeo.filter(q => !!q).map(elm => {
return { return {
id: elm.value, id: elm.value,
name: elm.label, name: elm.label,
......
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