From 328881d786b1c5aee4a483fc148b9dd058046124 Mon Sep 17 00:00:00 2001 From: Gunka Artur Date: Thu, 19 Dec 2024 16:43:05 +0200 Subject: [PATCH] theme filter --- public/editor-client/src/defaultTemplates/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/editor-client/src/defaultTemplates/utils.ts b/public/editor-client/src/defaultTemplates/utils.ts index 350b2e63f1..41ce7e9674 100644 --- a/public/editor-client/src/defaultTemplates/utils.ts +++ b/public/editor-client/src/defaultTemplates/utils.ts @@ -94,7 +94,8 @@ export const converterKit = ( type: theme .split(",") .map((item) => item.trim()) - .map((i1) => i1.toLowerCase()), + .map((i1) => i1.toLowerCase()) + .filter((item) => item.length), keywords: keywords ?? "", thumbnailHeight, thumbnailWidth,