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

Remove disableAutoLoginRedirect from fetchJSON requests

GitOrigin-RevId: 97b606484f671db4f0591db0b77774e6af3ca5a8
This commit is contained in:
Alf Eaton 2021-05-18 11:57:34 +01:00 committed by Copybot
parent 8c3578e74b
commit 4f20319167

View file

@ -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)