fix: omit long file names (#608)

### What problem does this PR solve?

#607
fix: omit long file names
fix: change the parsing method from tag to select
fix: replace icon for new chat
fix: change the OK button text of the Chat Bot API modal to close


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-04-29 18:22:17 +08:00
committed by GitHub
parent 2af74cc494
commit 4c1476032d
12 changed files with 63 additions and 45 deletions

View File

@ -74,9 +74,9 @@ export const useFetchParserListOnMount = (
setSelectedTag(parserId);
}, [parserId, documentId]);
const handleChange = (tag: string, checked: boolean) => {
const nextSelectedTag = checked ? tag : selectedTag;
setSelectedTag(nextSelectedTag);
const handleChange = (tag: string) => {
// const nextSelectedTag = checked ? tag : selectedTag;
setSelectedTag(tag);
};
return { parserList: nextParserList, handleChange, selectedTag };