Skip to content

Commit 454125e

Browse files
papadopanpamfilos
authored andcommitted
ui: fb rename id updated
* closes #2085 Customize Field updated with the correct path after rename Signed-off-by: papadopan <[email protected]>
1 parent 85b4d21 commit 454125e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui/cap-react/src/actions/schemaWizard.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,13 @@ export function renameIdByPath(item, newName) {
349349
dispatch(
350350
updateByPath({ schema: path, uiSchema: uiPath }, { schema, uiSchema })
351351
);
352-
dispatch(enableCreateMode());
352+
353+
dispatch(
354+
selectProperty({
355+
schema: [...path, newName],
356+
uiSchema: [...uiPath, newName]
357+
})
358+
);
353359
};
354360
}
355361

0 commit comments

Comments
 (0)