From 66ea1c2bed255ba9899ad1aa5b35ff8926ec3580 Mon Sep 17 00:00:00 2001 From: Chanjin Park Date: Fri, 1 Nov 2024 21:27:14 +0900 Subject: [PATCH] `id` is handled only on `UploadView` --- src/backend/gs_index/src/components/UploadView.vue | 2 +- src/backend/gs_index/src/corpusStorage.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/gs_index/src/components/UploadView.vue b/src/backend/gs_index/src/components/UploadView.vue index 7840329..2b45827 100644 --- a/src/backend/gs_index/src/components/UploadView.vue +++ b/src/backend/gs_index/src/components/UploadView.vue @@ -27,7 +27,7 @@ if (!str) return "Corpus"; - return str.substring(0, maxlen); + return str.substring(0, maxlen).replace(/\s+/, ' ').trim(); } } } diff --git a/src/backend/gs_index/src/corpusStorage.js b/src/backend/gs_index/src/corpusStorage.js index f29c858..7746ae3 100644 --- a/src/backend/gs_index/src/corpusStorage.js +++ b/src/backend/gs_index/src/corpusStorage.js @@ -36,9 +36,6 @@ class CorpusStorageInner { getRequest.onerror = (event) => reject(event.target.error); }; - - if (!content.id) - content.id = "id"; checkAndAdd(content, content.id); }); }