Skip to content

Commit

Permalink
Support collection formats in FullSelect
Browse files Browse the repository at this point in the history
@sc0ttkclark Is this valid?
  • Loading branch information
JoryHogeveen authored Aug 31, 2023
1 parent 54ef697 commit 1d11a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/js/dfv/src/fields/pick/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ const Pick = ( props ) => {
);

const formattedOptions = modifiedFieldItemData.map( ( item ) => ( {
label: item.name,
value: item.id,
label: item.name ?? item.label,
value: item.id ?? item.collection,
} ) );

const addNewItem = ( newOption ) => {
Expand Down

0 comments on commit 1d11a2f

Please sign in to comment.