Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed Oct 22, 2024
1 parent c2994e0 commit b039310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fields/src/actions/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export function getItemTitle( item: Post ) {
if ( typeof item.title === 'string' ) {
return decodeEntities( item.title );
}
if ( item.title && 'rendered' in item.title ) {
if ( 'rendered' in item.title ) {
return decodeEntities( item.title.rendered );
}
if ( item.title && 'raw' in item?.title ) {
if ( 'raw' in item.title ) {
return decodeEntities( item.title.raw );
}
return '';
Expand Down

0 comments on commit b039310

Please sign in to comment.