Skip to content

Commit

Permalink
Merge pull request #238 from botpress/ya-fix-skills-folder
Browse files Browse the repository at this point in the history
fix(studio): prevent skills folder with casing
  • Loading branch information
EFF committed Jan 14, 2022
2 parents 26df393 + 94f3c04 commit 32823b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const FlowNameModal: FC<Props> = props => {
submitText = lang.tr('rename')
}

const isNameInvalid = name?.startsWith('skills/')
const isNameInvalid = name?.toLowerCase().startsWith('skills/')

return (
<Dialog isOpen={props.isOpen} onClose={closeModal} transitionDuration={0} {...dialog}>
Expand Down

0 comments on commit 32823b2

Please sign in to comment.