Skip to content

Commit

Permalink
Merge pull request #337 from 10up/fix/content-picker-for-terms
Browse files Browse the repository at this point in the history
Fix: Content picker check whether item.subtype is truthy before using it
  • Loading branch information
fabiankaegy authored Jul 4, 2024
2 parents 8026873 + 2bc54f3 commit 45c89d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/content-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const ContentPicker: React.FC<ContentPickerProps> = ({
{
id: item.id,
uuid: uuidv4(),
type: 'subtype' in item ? item.subtype : item.type,
type: 'subtype' in item && item.subtype ? item.subtype : item.type,
},
...content,
];
Expand Down

0 comments on commit 45c89d7

Please sign in to comment.