fix typo
This commit is contained in:
parent
340bef2175
commit
677a01d634
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ function ChunksPageContent() {
|
|||
}, [queryInputText, chunks]);
|
||||
|
||||
const handleCopy = useCallback((text: string, index: number) => {
|
||||
// Trime whitespace and remove new lines/tabs for cleaner copy
|
||||
// Trim whitespace and remove new lines/tabs for cleaner copy
|
||||
navigator.clipboard.writeText(text.trim().replace(/[\n\r\t]/gm, ""));
|
||||
setActiveCopiedChunkIndex(index);
|
||||
setTimeout(() => setActiveCopiedChunkIndex(null), 30 * 1000); // 30 seconds
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue