Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1930 | fixing locale delete
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Sep 19, 2024
1 parent 641ed69 commit e1c6fce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/concepts/LocaleForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ const LocaleForm = ({
React.useEffect(() => {
source?.id && setManualExternalID(!source[autoIDConfigField])
}, [source])
React.useEffect(() => {
setSelectedLocale(locale?.locale ? {id: locale.locale, name: locale.locale} : null)
}, [locale?.locale])

return (
<div className='col-md-12' style={{border: `1px solid ${borderColor}`, borderRadius: '4px', paddingBottom: '15px', width: '100%'}}>
Expand Down

0 comments on commit e1c6fce

Please sign in to comment.