diff --git a/src/components/Apps/AppViewer.tsx b/src/components/Apps/AppViewer.tsx index 38cfe71..33ade79 100644 --- a/src/components/Apps/AppViewer.tsx +++ b/src/components/Apps/AppViewer.tsx @@ -86,7 +86,7 @@ export const AppViewer = forwardRef( useEffect(() => { const iframe = iframeRef?.current; - if (!iframe) return; + if (!iframe || !iframe?.src) return; try { const targetOrigin = new URL(iframe.src).origin; @@ -101,7 +101,7 @@ export const AppViewer = forwardRef( useEffect(() => { const iframe = iframeRef?.current; - if (!iframe) return; + if (!iframe || !iframe?.src) return; try { const targetOrigin = new URL(iframe.src).origin; diff --git a/src/components/Apps/AppsDevModeNavBar.tsx b/src/components/Apps/AppsDevModeNavBar.tsx index 1ce7d76..548f1d2 100644 --- a/src/components/Apps/AppsDevModeNavBar.tsx +++ b/src/components/Apps/AppsDevModeNavBar.tsx @@ -32,13 +32,7 @@ export const AppsDevModeNavBar = () => { 'tutorial', ]); const theme = useTheme(); - const { t } = useTranslation([ - 'auth', - 'core', - 'group', - 'question', - 'tutorial', - ]); + const [isNewTabWindow, setIsNewTabWindow] = useState(false); const tabsRef = useRef(null);