Skip to content

Commit 0981144

Browse files
author
Huan Li
committed
Fix issue of add education
1 parent d978cfc commit 0981144

File tree

1 file changed

+1
-1
lines changed
  • src/shared/components/Settings/Profile/Education

1 file changed

+1
-1
lines changed

src/shared/components/Settings/Profile/Education/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export default class Education extends ConsentComponent {
295295
}
296296

297297
if (educationTrait.traits && educationTrait.traits.data.length > 0) {
298-
const newEducationTrait = { ...educationTrait };
298+
const newEducationTrait = _.cloneDeep(educationTrait);
299299
if (isEdit) {
300300
newEducationTrait.traits.data.splice(indexNo, 1);
301301
}

0 commit comments

Comments
 (0)