Skip to content

Commit

Permalink
feat: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
杨国璇 authored and 杨国璇 committed Dec 16, 2024
1 parent 75aad2b commit 9f1a989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/metadata/utils/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const openInNewTab = (repoID, record) => {
if (!record) return;
const isDir = checkIsDir(record);
const fileName = getFileNameFromRecord(record);
let parentDir = _getParentDir(record);
const parentDir = _getParentDir(record);
_openByNewWindow(repoID, fileName, parentDir, isDir ? FILE_TYPE.FOLDER : '');
};

Expand Down

0 comments on commit 9f1a989

Please sign in to comment.