Skip to content

Commit

Permalink
id is handled only on UploadView
Browse files Browse the repository at this point in the history
  • Loading branch information
parkchamchi committed Nov 1, 2024
1 parent c6e0d49 commit 66ea1c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/backend/gs_index/src/components/UploadView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
if (!str)
return "Corpus";
return str.substring(0, maxlen);
return str.substring(0, maxlen).replace(/\s+/, ' ').trim();
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/backend/gs_index/src/corpusStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ class CorpusStorageInner {

getRequest.onerror = (event) => reject(event.target.error);
};

if (!content.id)
content.id = "id";
checkAndAdd(content, content.id);
});
}
Expand Down

0 comments on commit 66ea1c2

Please sign in to comment.