From e3a2e1ff4f86dff472eed38001d4ef30f2b42411 Mon Sep 17 00:00:00 2001 From: Evangelos Skopelitis Date: Thu, 16 Jan 2025 12:16:29 -0500 Subject: [PATCH] frontend: EditorDialog: Render dialog unconditionally This change addresses a regression introduced in #2590 where conditionally loading the dialog would cause Monaco Editor to malfunction. The conditional rendering logic is now removed to restore editor functionality. Fixes: #2693 Signed-off-by: Evangelos Skopelitis --- frontend/src/components/common/Resource/EditorDialog.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/src/components/common/Resource/EditorDialog.tsx b/frontend/src/components/common/Resource/EditorDialog.tsx index 8eefc983d75..2c182d60703 100644 --- a/frontend/src/components/common/Resource/EditorDialog.tsx +++ b/frontend/src/components/common/Resource/EditorDialog.tsx @@ -404,10 +404,6 @@ export default function EditorDialog(props: EditorDialogProps) { const dialogTitleId = useId('editor-dialog-title-'); - if (!other.open && !other.keepMounted) { - return null; - } - return (