Skip to content

fix(ENG-11346): show placeholder in cedar-derived filter dropdowns#1013

Open
Vlad0n20 wants to merge 2 commits into
CenterForOpenScience:feature/es2-consolidationfrom
Vlad0n20:fix/ENG-11346
Open

fix(ENG-11346): show placeholder in cedar-derived filter dropdowns#1013
Vlad0n20 wants to merge 2 commits into
CenterForOpenScience:feature/es2-consolidationfrom
Vlad0n20:fix/ENG-11346

Conversation

@Vlad0n20

Copy link
Copy Markdown
Contributor
  • Ticket: [ENG-11346]
  • Feature flag: fix

Purpose

Summary of Changes

Screenshot(s)

Side Effects

QA Notes

}

getPlaceholderKey(filter: DiscoverableFilter): string {
return FILTER_PLACEHOLDERS[filter.key] || 'common.search.filterPlaceholders.generic';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return FILTER_PLACEHOLDERS[filter.key] || 'common.search.filterPlaceholders.generic';
return FILTER_PLACEHOLDERS[filter.key] ?? 'common.search.filterPlaceholders.generic';

Better to use such operator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants