Skip to content

Commit

Permalink
fix check for subtype to be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed Jul 4, 2024
1 parent 8026873 commit 2bc54f3
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 2bc54f3

Please sign in to comment.