Skip to content

Commit

Permalink
fix: start with leter conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jan 7, 2021
1 parent f484eb5 commit 500e22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/components/src/LinkHeading/pageLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const titleToId = (id: any): string => {
return value;
}
//firce start with letter
return `i-${value}`;
return value ? `i-${value}` : value;
};
export const pageLink = (id: string): string => {
let url = '';
Expand Down

0 comments on commit 500e22a

Please sign in to comment.