Skip to content

Commit caf4c4a

Browse files
committed
properly scopes effect cleanup return
1 parent 3ddd972 commit caf4c4a

File tree

1 file changed

+6
-6
lines changed
  • packages/ui/src/providers/DocumentInfo

1 file changed

+6
-6
lines changed

packages/ui/src/providers/DocumentInfo/index.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -583,13 +583,13 @@ const DocumentInfo: React.FC<
583583
}
584584

585585
void getInitialState()
586+
}
586587

587-
return () => {
588-
try {
589-
abortController.abort()
590-
} catch (_err) {
591-
// swallow error
592-
}
588+
return () => {
589+
try {
590+
abortController.abort()
591+
} catch (_err) {
592+
// swallow error
593593
}
594594
}
595595
}, [

0 commit comments

Comments
 (0)