Skip to content

Commit

Permalink
Merge branch 'main' into beyackle/l10n-2020-09-15
Browse files Browse the repository at this point in the history
  • Loading branch information
beyackle authored Sep 15, 2020
2 parents 2f7e7b6 + 6eb447b commit 3c6d47c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Composer/packages/lib/shared/src/skillsUtils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export const convertSkillsToDictionary = (skills: Skill[]) => {
return keyBy(mappedSkills, 'name');
};

export const getSkillNameFromSetting = (value: string) => {
export const getSkillNameFromSetting = (value?: string) => {
if (!value) return '';

const matched = value.match(/\['(.*?)'\]/);
if (matched && matched.length > 1) {
return matched[1];
Expand Down

0 comments on commit 3c6d47c

Please sign in to comment.