mirror of https://github.com/buster-so/buster.git
build fix
This commit is contained in:
parent
c8d2c0ff0f
commit
94a127cb0e
|
@ -54,7 +54,7 @@ const StreamTokenArrayDemo = ({
|
||||||
}, [tokens, autoStream, streamDelay]);
|
}, [tokens, autoStream, streamDelay]);
|
||||||
|
|
||||||
const { throttledTokens, throttledContent, isDone, flushNow, reset } = useStreamTokenArray({
|
const { throttledTokens, throttledContent, isDone, flushNow, reset } = useStreamTokenArray({
|
||||||
tokens: autoStream ? currentTokens : tokens,
|
tokens: (autoStream ? currentTokens : tokens).map(t => ({ token: t, delayMs: 0 })),
|
||||||
isStreamFinished: autoStream ? finished : isStreamFinished,
|
isStreamFinished: autoStream ? finished : isStreamFinished,
|
||||||
...hookProps
|
...hookProps
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue