Skip to content

Commit

Permalink
frontend: EditorDialog: Render dialog unconditionally
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
skoeva committed Jan 16, 2025
1 parent 59db42b commit e3a2e1f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frontend/src/components/common/Resource/EditorDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,6 @@ export default function EditorDialog(props: EditorDialogProps) {

const dialogTitleId = useId('editor-dialog-title-');

if (!other.open && !other.keepMounted) {
return null;
}

return (
<Dialog
title={dialogTitle}
Expand Down

0 comments on commit e3a2e1f

Please sign in to comment.