Răsfoiți Sursa

Merge pull request #4040 from overleaf/ae-json-request-cleanup

Remove disableAutoLoginRedirect from fetchJSON requests

GitOrigin-RevId: 97b606484f671db4f0591db0b77774e6af3ca5a8
Alf Eaton 5 ani în urmă
părinte
comite
4f20319167

+ 1 - 3
services/web/frontend/js/features/binary-file/components/binary-file-header.js

@@ -66,9 +66,7 @@ export default function BinaryFileHeader({ file, storeReferencesKeys }) {
     setRefreshing(true)
     // Replacement of the file handled by the file tree
     window.expectingLinkedFileRefreshedSocketFor = file.name
-    postJSON(`/project/${window.project_id}/linked_file/${file.id}/refresh`, {
-      disableAutoLoginRedirect: true,
-    })
+    postJSON(`/project/${window.project_id}/linked_file/${file.id}/refresh`)
       .then(() => {
         if (isMounted.current) {
           setRefreshing(false)