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]);
|
}, [queryInputText, chunks]);
|
||||||
|
|
||||||
const handleCopy = useCallback((text: string, index: number) => {
|
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, ""));
|
navigator.clipboard.writeText(text.trim().replace(/[\n\r\t]/gm, ""));
|
||||||
setActiveCopiedChunkIndex(index);
|
setActiveCopiedChunkIndex(index);
|
||||||
setTimeout(() => setActiveCopiedChunkIndex(null), 30 * 1000); // 30 seconds
|
setTimeout(() => setActiveCopiedChunkIndex(null), 30 * 1000); // 30 seconds
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue