Skip to content

Commit

Permalink
fix: fix markdown editor add file bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyxh committed Aug 23, 2024
1 parent f1e70f6 commit 1ff3eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filehandle/components/AddFileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function AddFileInput({
const [loading, setLoading] = useState(false);

const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const value = e.target.value.trim();
const value = e.target.value;

if (!validateFileName(value) || names.some((n) => n === value)) {
return setInputStatus({ name: value, status: 'error' });
Expand Down

0 comments on commit 1ff3eb7

Please sign in to comment.