Skip to content

Commit bd3a4bb

Browse files
committed
fix folder path bug
1 parent 39edb94 commit bd3a4bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/File/NewDirectory.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Button } from '@material-tailwind/react'
44
import posthog from 'posthog-js'
55

66
import ReorModal from '../Common/Modal'
7-
import { getInvalidCharacterInFileName } from '@/lib/file'
7+
import { getInvalidCharacterInFilePath } from '@/lib/file'
88
import { useFileContext } from '@/contexts/FileContext'
99

1010
interface NewDirectoryComponentProps {
@@ -50,7 +50,7 @@ const NewDirectoryComponent: React.FC<NewDirectoryComponentProps> = ({ isOpen, o
5050
}, [isOpen])
5151

5252
const handleValidName = async (name: string) => {
53-
const invalidCharacters = await getInvalidCharacterInFileName(name)
53+
const invalidCharacters = await getInvalidCharacterInFilePath(name)
5454
if (invalidCharacters) {
5555
setErrorMessage(`Cannot put ${invalidCharacters} in file name`)
5656
return false

0 commit comments

Comments
 (0)