Skip to content

Commit 293d9e6

Browse files
authored
Merge pull request #1004 from ashanhr/b2b-improvement
[B2B Feature] Enable Editing of Organization Reference ID
2 parents b30f846 + f3557ee commit 293d9e6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

portals/admin/src/main/webapp/source/src/app/components/Organizations/AddEditOrganization.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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={(

0 commit comments

Comments
 (0)