From 9f1a9894113b2b223cb30bef2917a842f93b67e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=9B=BD=E7=92=87?= Date: Mon, 16 Dec 2024 17:43:57 +0800 Subject: [PATCH] feat: optimize code --- frontend/src/metadata/utils/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/metadata/utils/file.js b/frontend/src/metadata/utils/file.js index 41869e3edb7..d9098be10ab 100644 --- a/frontend/src/metadata/utils/file.js +++ b/frontend/src/metadata/utils/file.js @@ -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 : ''); };