Skip to content

Commit

Permalink
feat: #87 - update search home page
Browse files Browse the repository at this point in the history
  • Loading branch information
eouin committed May 30, 2023
1 parent c7429f1 commit 5fbcec3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ export interface SortedTagListEntry {
}

export const getAlternativeTitles = (val: string, tags: TutorialsTags): string[] | null => {
if (tags && tags[val]) {
if (tags?.[val]) {
return tags[val].tagAlternativeTitles;
} else {
return null;
}
};

export const getTutorialsTag = (val: string, tags: TutorialsTags): string => {
if (tags && tags[val]) {
if (tags?.[val]) {
return tags[val].title;
} else {
return '';
Expand Down

0 comments on commit 5fbcec3

Please sign in to comment.