Skip to content

Commit c2517c8

Browse files
Update ui/src/components/ConnectionStatus.tsx
Add `getVersionInfo` exhaustive-dep to `useEffect()`. Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 63e8f4d commit c2517c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/ConnectionStatus.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ConnectionStatusIcon = () => {
2121
connectionStatus === "connected") {
2222
getVersionInfo();
2323
}
24-
}, [connectionStatus]);
24+
}, [connectionStatus, getVersionInfo]);
2525

2626
const title = useMemo(() => {
2727
let baseTitle = `event stream: ${connectionStatus}`;

0 commit comments

Comments
 (0)