Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored May 21, 2024
1 parent efffc0c commit b5eac9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions clients/tabby-chat-panel/dist/react.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 1 addition & 2 deletions clients/tabby-chat-panel/dist/react.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b5eac9b

Please sign in to comment.