Skip to content

Commit

Permalink
fix: updating filename
Browse files Browse the repository at this point in the history
  • Loading branch information
jun-brro committed Mar 13, 2024
1 parent 18f3e48 commit 2d044dc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions my-app/src/components/FileNameDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ const FileNameDisplay: React.FC<FileNameDisplayProps> = ({ fileId }) => {
const response = await axios.get(`${apiUrl}/translations/${fileId}`);
const originalFileName = response.data.originalFileName;

const fileNameWithoutExtension = originalFileName
.split(".")
.slice(0, -1)
.join(".");
const fileNameWithoutExtension = originalFileName;
setFileName(fileNameWithoutExtension);
} catch (error) {
console.error("파일 정보를 불러오는데 실패했습니다.", error);
Expand Down

0 comments on commit 2d044dc

Please sign in to comment.