From 59d861457eb55c13c7765032baf0c3008b3ef92c Mon Sep 17 00:00:00 2001 From: Mathias Jakobsen Date: Fri, 19 Sep 2025 13:45:00 +0100 Subject: [PATCH] Merge pull request #28597 from overleaf/mj-auto-collapse-timeout-messages-when-error-state-present [web] Avoid double compile time paywall GitOrigin-RevId: f732006f92ff0029c2f69297f43b9ca441994145 --- .../pdf-preview/components/timeout-upgrade-prompt-new.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx b/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx index b9243da7e5..31d5d51621 100644 --- a/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx +++ b/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx @@ -14,6 +14,7 @@ import { import { isNewUser, useIsNewEditorEnabled, + useIsNewErrorLogsPositionEnabled, } from '@/features/ide-redesign/utils/new-editor-utils' import { getSplitTestVariant } from '@/utils/splitTestUtils' @@ -78,6 +79,7 @@ const CompileTimeout = memo(function CompileTimeout({ segmentation, }: CompileTimeoutProps) { const { t } = useTranslation() + const newLogsPosition = useIsNewErrorLogsPositionEnabled() const extraSearchParams = useMemo(() => { if (!isNewUser()) { @@ -97,7 +99,7 @@ const CompileTimeout = memo(function CompileTimeout({ return (