Skip to content

Commit

Permalink
Merge pull request #1478 from culturecreates/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sahalali authored Dec 3, 2024
2 parents 62529b8 + a3ceeb6 commit c1ce15f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/pages/Dashboard/AddTaxonomy/AddTaxonomy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,15 @@ const AddTaxonomy = () => {
};

const handleSelectChange = (selectedKeys, option) => {
Object.keys(option).forEach((key) => {
if (key != 'value' && key != 'key' && key != 'label') {
form.setFieldValue(['name', key], option[key]);
}
let name = {};
calendarContentLanguage.forEach((language) => {
const langKey = contentLanguageKeyMap[language];
if (Object.prototype.hasOwnProperty.call(option, langKey)) {
name[langKey] = option[langKey];
} else name[langKey] = option[contentLanguageKeyMap.ENGLISH];
});

form.setFieldsValue({ name });
};

function modifyConceptData(conceptData) {
Expand Down

0 comments on commit c1ce15f

Please sign in to comment.