From 785d0965e3a2328fa98959965b4f2a5b0f16e24c Mon Sep 17 00:00:00 2001 From: Darren Clarke Date: Mon, 13 Mar 2023 22:14:52 +0000 Subject: [PATCH] Link and metamigo build fixes --- apps/link/components/ZammadWrapper.tsx | 11 ++++++----- apps/link/pages/admin/label-studio.tsx | 1 + apps/link/pages/admin/metamigo.tsx | 3 ++- apps/link/pages/leafcutter/about.tsx | 1 + apps/link/pages/leafcutter/create.tsx | 1 + apps/link/pages/leafcutter/faq.tsx | 1 + apps/link/pages/leafcutter/index.tsx | 1 + apps/link/pages/leafcutter/trends.tsx | 1 + apps/metamigo-frontend/.eslintrc.js | 6 ++++-- apps/metamigo-frontend/components/AdminLogin.tsx | 2 +- apps/metamigo-worker/db.ts | 2 +- apps/metamigo-worker/index.ts | 2 +- apps/metamigo-worker/logger.ts | 2 +- apps/metamigo-worker/tasks/voice-line-delete.ts | 2 +- .../tasks/voice-line-provider-update.ts | 2 +- apps/metamigo-worker/tsconfig.json | 2 +- apps/metamigo-worker/utils.ts | 2 +- 17 files changed, 26 insertions(+), 16 deletions(-) diff --git a/apps/link/components/ZammadWrapper.tsx b/apps/link/components/ZammadWrapper.tsx index 290ff48..ecc60a5 100644 --- a/apps/link/components/ZammadWrapper.tsx +++ b/apps/link/components/ZammadWrapper.tsx @@ -10,15 +10,17 @@ export const ZammadWrapper: FC = ({ path, hideSidebar = true, }) => { - const origin = typeof window !== 'undefined' && window.location.origin - ? window.location.origin - : ''; + const origin = + typeof window !== "undefined" && window.location.origin + ? window.location.origin + : ""; const [display, setDisplay] = useState("hidden"); const url = `${origin}/zammad${path}`; console.log({ origin, path, url }); return ( - < Iframe + // @ts-ignore +