File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
portals/admin/src/main/webapp/source/src/app/components/Organizations Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ function AddEditOrganization(props) {
7676 description : '' ,
7777 } ) ;
7878 const [ state , dispatch ] = useReducer ( reducer , initialState ) ;
79- const [ editMode , setIsEditMode ] = useState ( false ) ;
8079 const {
8180 referenceId, displayName, description,
8281 } = state ;
@@ -185,7 +184,7 @@ function AddEditOrganization(props) {
185184
186185 const promiseAPICall = dataRow
187186 ? new API ( ) . updateOrganization (
188- dataRow . externalOrganizationId ,
187+ referenceId ,
189188 dataRow . organizationId ,
190189 displayName ,
191190 description ,
@@ -227,7 +226,6 @@ function AddEditOrganization(props) {
227226 displayName : originalName ,
228227 description : originalDescription ,
229228 } = dataRow ;
230- setIsEditMode ( true ) ;
231229 dispatch ( {
232230 field : 'editDetails' ,
233231 value : {
@@ -293,7 +291,6 @@ function AddEditOrganization(props) {
293291 fullWidth
294292 error = { hasErrors ( 'referenceId' , referenceId ) }
295293 variant = 'outlined'
296- disabled = { editMode }
297294 />
298295 < Tooltip
299296 title = { (
You can’t perform that action at this time.
0 commit comments