Skip to content

Commit

Permalink
Display proper vocabulary field name
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Dec 10, 2024
1 parent 990b9b7 commit c52bad8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const getCustomVocabularyFields = () => {
const allVocabularies = superdeskApi.entities.vocabulary.getAll();

for (const id of customVocabularyIds) {
const vocabulary = allVocabularies.get(id);

result.push({
fieldId: getCustomVocabulariesId(id),
getField: ({required, id: _id}) => {
Expand All @@ -29,7 +31,7 @@ export const getCustomVocabularyFields = () => {

const field: IAuthoringFieldV2 = {
id: _id,
name: id,
name: vocabulary.display_name,
fieldType: 'dropdown',
fieldConfig: fieldConfig,
};
Expand Down

0 comments on commit c52bad8

Please sign in to comment.