From 7df3bc3b31ce42cb5b422b696fa68bc749676b70 Mon Sep 17 00:00:00 2001 From: Nastya Date: Wed, 20 Dec 2023 00:59:35 +0300 Subject: [PATCH] =?UTF-8?q?qid=20=D0=B2=20=D0=BF=D0=B0=D1=80=D1=81=D0=B5?= =?UTF-8?q?=20=D0=B1=D0=B5=D1=80=D1=91=D1=82=D1=81=D1=8F=20=D0=B8=D0=B7=20?= =?UTF-8?q?=D1=83=D1=80=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ViewPublicationPage/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 ( {