From b5eac9beaf78c00013fabfec83a1c558ddd82070 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 07:53:31 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- clients/tabby-chat-panel/dist/react.cjs | 3 +-- clients/tabby-chat-panel/dist/react.mjs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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; }