Skip to content

Commit 42e7509

Browse files
committed
fix(integrations): clean mcp-apps drawer cleanup
1 parent 8114589 commit 42e7509

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

examples/integrations/mcp-apps/app/components/threads-drawer/threads-drawer.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,14 @@ export default function ThreadsDrawer({
120120
>({});
121121

122122
useEffect(() => {
123+
const entryTimeouts = entryTimeoutsRef.current;
124+
const titleTimeouts = titleTimeoutsRef.current;
125+
123126
return () => {
124-
for (const timeoutId of entryTimeoutsRef.current.values()) {
127+
for (const timeoutId of entryTimeouts.values()) {
125128
window.clearTimeout(timeoutId);
126129
}
127-
for (const timeoutId of titleTimeoutsRef.current.values()) {
130+
for (const timeoutId of titleTimeouts.values()) {
128131
window.clearTimeout(timeoutId);
129132
}
130133
};

0 commit comments

Comments
 (0)