diff --git a/packages/plugins/plugin-workspace-diff/src/ui/index.tsx b/packages/plugins/plugin-workspace-diff/src/ui/index.tsx index f660bddc4fd..97baa8dd913 100644 --- a/packages/plugins/plugin-workspace-diff/src/ui/index.tsx +++ b/packages/plugins/plugin-workspace-diff/src/ui/index.tsx @@ -576,10 +576,6 @@ export function ChangesTab({ context }: PluginDetailTabProps) { }; }, []); - useEffect(() => { - fileSidebarWidthRef.current = fileSidebarWidth; - }, [fileSidebarWidth]); - useEffect(() => { if (!fileSidebarResizing || typeof document === "undefined") return; @@ -644,7 +640,7 @@ export function ChangesTab({ context }: PluginDetailTabProps) {