diff --git a/clients/tabby-chat-panel/dist/react.cjs b/clients/tabby-chat-panel/dist/react.cjs index 882f1172e31a..19f42056caa0 100644 --- a/clients/tabby-chat-panel/dist/react.cjs +++ b/clients/tabby-chat-panel/dist/react.cjs @@ -7,9 +7,8 @@ require('@quilted/threads'); function useClient(iframeRef, api) { const clientRef = react.useRef(null); react.useEffect(() => { - if (iframeRef.current && !clientRef.current) { + if (iframeRef.current && !clientRef.current) clientRef.current = index.createClient(iframeRef.current, api); - } }, [iframeRef.current]); return clientRef.current; } diff --git a/clients/tabby-chat-panel/dist/react.mjs b/clients/tabby-chat-panel/dist/react.mjs index 6de5b3c7c3c1..5b99d419175a 100644 --- a/clients/tabby-chat-panel/dist/react.mjs +++ b/clients/tabby-chat-panel/dist/react.mjs @@ -5,9 +5,8 @@ import '@quilted/threads'; function useClient(iframeRef, api) { const clientRef = useRef(null); useEffect(() => { - if (iframeRef.current && !clientRef.current) { + if (iframeRef.current && !clientRef.current) clientRef.current = createClient(iframeRef.current, api); - } }, [iframeRef.current]); return clientRef.current; }