Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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