Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
vklimontovich committed Dec 5, 2023
1 parent a14dd68 commit 925964c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
11 changes: 11 additions & 0 deletions webapps/console/components/Redirect/Redirect.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { useEffect } from "react";
import { useRouter } from "next/router";
import { LoadingAnimation } from "../GlobalLoader/GlobalLoader";

export const Redirect: React.FC<{ href: string }> = ({ href }) => {
const router = useRouter();
useEffect(() => {
router.push(href);
}, []);
return <LoadingAnimation />;
};
8 changes: 3 additions & 5 deletions webapps/console/pages/[workspaceId]/syncs/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { LoadingAnimation } from "../../../components/GlobalLoader/GlobalLoader"
import { ErrorCard, GlobalError } from "../../../components/GlobalError/GlobalError";
import { useLinksQuery } from "../../../lib/queries";
import SyncEditorPage from "../../../components/SyncEditorPage/SyncEditorPage";
import { router } from "next/client";
import { Redirect } from "../../../components/Redirect/Redirect";

const Loader = () => {
const workspace = useWorkspace();
Expand Down Expand Up @@ -34,11 +34,9 @@ const Loader = () => {
const [services, destinations, links] = result.data;
//protection from faulty redirects to this page
if (services.length === 0) {
router.push(`/${workspace.slugOrId}/services`);
return <></>;
return <Redirect href={`/${workspace.slugOrId}/services`} />;
} else if (destinations.length === 0) {
router.push(`/${workspace.slugOrId}/destinations`);
return <></>;
return <Redirect href={`/${workspace.slugOrId}/destinations`} />;
}
return <SyncEditorPage services={services} destinations={destinations} links={links} />;
};
Expand Down

1 comment on commit 925964c

@vercel
Copy link

@vercel vercel bot commented on 925964c Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

new-jitsu – ./webapps/console

ag.ru
logu.au
ozon.ru
sse.ere
erxes.io
baidu.dom
sambla.se
bobsec.com
sambla.com
agro4u.life
bluetick.ai
protontv.eu
t.quenti.io
alicesec.com
t.saasmonk.app
use2.jitsu.com
www.kellen.top
*.dataspecc.com
app.bluetick.ai
caddy.jitsu.com
data.askloan.tw
enterticket.com
events.mitzu.io
jitsu.efeer.com
jitsu.ivve.tech
krestomatio.com
sevenbillion.co
xrt.webxr.tools
app.jotverse.com
caddy2.jitsu.com
data.mysitee.com
dev-t.democo.dev
events.quenti.io
utils.doogma.com
worthsystems.com
data.music2me.com
data.timeplus.com
event-gateway.com
https.bluetick.ai
ji.degulesider.dk
jitsu.ivve.health
metabase.erxes.io
t.clickncruise.hu
data.mycompany.com
data.usepolygon.io
demosite.jitsu.com
dev.driverdeck.app
new.enterticket.es
t-dev.papermark.io
uniquecafes.com.br
www.sidetrekai.com
colectha.voolu.shop
crm.myguestcare.com
data.sidetrekai.com
data.timeplus.cloud
localhost.jitsu.com
report.improvado.io
trk.myguestcare.com
www.sevenbillion.co
analytics.mtrsvc.com
data.embeddables.com
mercury.stagehub.com
store.sidetrekai.com
teslahenry.github.io
data.hogarlylabs.tech
event.clickncruise.hu
event.clickncruise.ro
test-domain.jitsu.com
teste.fazcomex.com.br
analytics.dev.knekt.io
loraboutiquedental.com
notion.twelftree.co.uk
dev-portal.zoopsign.com
event.tradejobsnz.co.nz
savvy-replay.jitsu.tech
data.analytics-smart.com
event.clickncruise.co.uk
jt.fairhopeweb.github.io
savvy-replay2.jitsu.tech
savvy-replay3.jitsu.tech
savvy-replay4.jitsu.tech
track.alquimiaweb.com.br
track.pressance-group.jp
track.uniquecafes.com.br
colectha.agenciavoolu.com
kolectha.agenciavoolu.com
lp.loraboutiquedental.com
stage-portal.zoopsign.com
new-jitsu-jitsu.vercel.app
lodercom-colectha.voolu.shop
warehouse1.trendstyle.com.au
d0.livingdesignsfurniture.com
jitsu.precisaosistemas.com.br
analytics.inspiresolutions.app
canvas.livingdesignsfurniture.com
analytics.dev.inspiresolutions.app
clm2jikrm00002v6r5l6niws3.d.jitsu.com
new-jitsu-git-newjitsu-jitsu.vercel.app
3000-rajaraodv-customerdemo-nmpsqwflswt.ws-us102.gitpod.io
new.jitsu.dev

Please sign in to comment.