diff --git a/src/ui/components/ServersView/DocumentViewer.tsx b/src/ui/components/ServersView/DocumentViewer.tsx index abd60f9af..ee5d3ffc8 100644 --- a/src/ui/components/ServersView/DocumentViewer.tsx +++ b/src/ui/components/ServersView/DocumentViewer.tsx @@ -28,7 +28,7 @@ const DocumentViewer = ({ setDocumentUrl(url); }, 100); } - }, [url]); + }, [url, documentUrl]); return ( <>