diff --git a/src/pages/ViewPublicationPage/index.tsx b/src/pages/ViewPublicationPage/index.tsx index 33d3a83..9d67802 100644 --- a/src/pages/ViewPublicationPage/index.tsx +++ b/src/pages/ViewPublicationPage/index.tsx @@ -16,7 +16,7 @@ const QID = process.env.NODE_ENV === "production" ? window.location.pathname.replace(/\//g, '') : - "c1ee11d2-ed5a-47d1-b500-bda6fd442114" + "e593a043-8ad2-4e16-9bf2-afb4f28385eb" export const ViewPage = () => { @@ -32,9 +32,11 @@ export const ViewPage = () => { //@ts-ignore const settings = data.settings console.log(data) + console.log(window.location.pathname.replace(/\//g, '')) const parseData = { settings: { - qid: "c1ee11d2-ed5a-47d1-b500-bda6fd442114", + //@ts-ignore + qid: window.location.pathname.replace(/\//g, '') || "e593a043-8ad2-4e16-9bf2-afb4f28385eb", fp: settings.fp, rep: settings.rep, name: settings.name, @@ -95,7 +97,7 @@ console.log(items) if (errormessage) return if (visualStartPage === undefined) return ; - if (cnt === 0) return + if (cnt === 0 || (cnt === 1 && items[0].type === "result")) return return ( {