From 2bc54f3cf632457fff4c196dbbc5176f126d641a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Ka=CC=88gy?= Date: Thu, 4 Jul 2024 13:42:51 +0200 Subject: [PATCH] fix check for subtype to be defined --- components/content-picker/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/content-picker/index.tsx b/components/content-picker/index.tsx index 347a8990..4c9093be 100644 --- a/components/content-picker/index.tsx +++ b/components/content-picker/index.tsx @@ -98,7 +98,7 @@ export const ContentPicker: React.FC = ({ { id: item.id, uuid: uuidv4(), - type: 'subtype' in item ? item.subtype : item.type, + type: 'subtype' in item && item.subtype ? item.subtype : item.type, }, ...content, ];