Skip to content

Commit 9b5aab4

Browse files
committed
update content types options to use labels
1 parent 1c7e98a commit 9b5aab4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/managePlugin/managePlugin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const handleManagePlugin = (
1313

1414
const ctds = (contentTypes || [])
1515
.filter((ctd) => !ctd.internal || ctd.name === '_media')
16-
.map(({ name }) => name);
16+
.map(({ name, label }) => ({ value: name, label }));
1717

1818
const language = getLanguage();
1919
if (language !== i18n.language) {
@@ -80,10 +80,11 @@ export const handleManagePlugin = (
8080
content_types: {
8181
label: i18n.t('ContentTypes'),
8282
unique: false,
83-
options: ctds,
8483
helpText: '',
8584
inputType: 'select',
8685
isMultiple: true,
86+
useOptionsWithLabels: true,
87+
optionsWithLabels: ctds,
8788
},
8889
link_template: {
8990
label: i18n.t('LinkTemplate'),

0 commit comments

Comments
 (0)