Fix variable typo (#8084)
This commit is contained in:
parent
b1918dae5e
commit
2d7954c7da
215 changed files with 599 additions and 597 deletions
|
|
@ -13,14 +13,14 @@ export const useModerate = (
|
|||
content: string,
|
||||
stop: boolean,
|
||||
moderationService: (text: string) => ReturnType<ModerationService>,
|
||||
seperateLength = 50,
|
||||
separateLength = 50,
|
||||
) => {
|
||||
const moderatedContentMap = useRef<Map<number, string>>(new Map())
|
||||
const moderatingIndex = useRef<number[]>([])
|
||||
const [contentArr, setContentArr] = useState<string[]>([])
|
||||
|
||||
const handleModerate = () => {
|
||||
const stringArr = splitStringByLength(content, seperateLength)
|
||||
const stringArr = splitStringByLength(content, separateLength)
|
||||
|
||||
const lastIndex = stringArr.length - 1
|
||||
stringArr.forEach((item, index) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue