Skip to content

Commit

Permalink
feat: preload EU selected items (2) - Ref gestion-de-projet#1603
Browse files Browse the repository at this point in the history
  • Loading branch information
mourads committed May 23, 2023
1 parent 6f954d6 commit 5e862e7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ const PopulationRightPanel: React.FC<PopulationRightPanelProps> = (props) => {
const [_selectedPopulation, _setSelectedPopulation] = useState<ScopeTreeRow[]>(selectedPopulation)
const [searchInput, setSearchInput] = useState('')

useEffect(() => {
_setSelectedPopulation(
selectedPopulation !== null ? (selectedPopulation?.filter((elem) => elem !== undefined) as ScopeTreeRow[]) : []
)
}, [open]) // eslint-disable-line
// useEffect(() => {
// _setSelectedPopulation(
// selectedPopulation !== null ? (selectedPopulation?.filter((elem) => elem !== undefined) as ScopeTreeRow[]) : []
// )
// }, [open]) // eslint-disable-line

/**
* Render
Expand Down

0 comments on commit 5e862e7

Please sign in to comment.