diff --git a/cypress/integration/validationReport.spec.js b/cypress/integration/validationReport.spec.js index e5c806b2..59eae6c3 100644 --- a/cypress/integration/validationReport.spec.js +++ b/cypress/integration/validationReport.spec.js @@ -146,7 +146,11 @@ describe("The Validation Report page", () => { fixture: "validationReport01ares.json", }).as("validation"); cy.visit("/report/ares-activities?id=BE-BCE_KBO-0546740696-PG2017-2021_CD"); - cy.get("[data-cy='document-url-anchor']").should("have.attr", "href", "https://aidstream.s3.us-west-2.amazonaws.com/xml/ares-activities.xml"); + cy.get("[data-cy='document-url-anchor']").should( + "have.attr", + "href", + "https://aidstream.s3.us-west-2.amazonaws.com/xml/ares-activities.xml", + ); cy.get("[data-cy='document-url-anchor']").should("have.text", "ares-activities.xml"); }); }); diff --git a/src/pages/ReportPage.vue b/src/pages/ReportPage.vue index 9c0f25df..452f234e 100644 --- a/src/pages/ReportPage.vue +++ b/src/pages/ReportPage.vue @@ -33,12 +33,14 @@ const { data: documentResponse, error: documentError } = useSWRV( !isTestFile ? getDocumentURL(route.params?.name) : null, () => fetchDocument(route.params.name), + { revalidateOnFocus: false }, ); const headerClassNames = "hidden border-0 border-b border-solid border-gray-300 p-2.5 font-bold sm:block"; const { data: organisation, error: organisationError } = useSWRV( () => document.value && getOrganisationURL(document.value.publisher, "id"), () => fetchOrganisationByID(document.value.publisher), + { revalidateOnFocus: false }, ); const { data: datasetResponse, error: datasetError } = useSWRV( () => @@ -46,6 +48,7 @@ ? document.value && validationReportURL(route.params.name, "name") : validationReportURL(route.params.name, "id"), () => fetchValidationReport(route.params.name, isTestFile), + { revalidateOnFocus: false }, ); provide("organisation", organisation); @@ -135,7 +138,7 @@ {{ organisation.title }} - - {{ getDocumentFileName(document) }} + {{ getDocumentFileName(document) }}
{{ dataset.filename }}