From 7294e7b0450571e9073330fc9f4ab146e10711bf Mon Sep 17 00:00:00 2001 From: Jakub Butkiewicz Date: Thu, 1 Feb 2024 09:48:33 +0100 Subject: [PATCH] fix: for extra padding in options list --- src/libs/OptionsListUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils.ts b/src/libs/OptionsListUtils.ts index 00e9aea7ad81..71d5626a4bed 100644 --- a/src/libs/OptionsListUtils.ts +++ b/src/libs/OptionsListUtils.ts @@ -1099,7 +1099,7 @@ function getTagListSections(tags: Tag[], recentlyUsedTags: string[], selectedOpt .map((tag) => ({name: tag, enabled: true})); const filteredTags = enabledTags.filter((tag) => !selectedOptionNames.includes(tag.name)); - if (selectedOptions) { + if (selectedOptions.length) { const selectedTagOptions = selectedOptions.map((option) => { const tagObject = tags.find((tag) => tag.name === option.name); return {