Skip to content

Commit

Permalink
Merge pull request Expensify#35541 from kubabutkiewicz/fix-extra-padd…
Browse files Browse the repository at this point in the history
…ing-in-options

Fix for extra padding in options list
  • Loading branch information
danieldoglas authored Feb 15, 2024
2 parents f8f093b + de8980b commit 32648bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 32648bb

Please sign in to comment.