diff --git a/src/libs/OptionsListUtils.ts b/src/libs/OptionsListUtils.ts index e2af10649bad..45669185367a 100644 --- a/src/libs/OptionsListUtils.ts +++ b/src/libs/OptionsListUtils.ts @@ -1115,7 +1115,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 {