[WIKI-656] fix: rendering work item embed component in version history #4159

This commit is contained in:
M. Palanikannan
2025-09-11 14:34:36 +05:30
committed by GitHub
parent 469cf584bd
commit 430eedfcf1

View File

@@ -70,6 +70,11 @@ export const DocumentEditor = forwardRef<EditorRefApi, DocumentEditorWrapperProp
const {
data: { is_smooth_cursor_enabled },
} = useUserProfile();
const {
embedHandler,
isSmoothCursorEnabled: _isSmoothCursorEnabled,
...restExtendedEditorProps
} = extendedEditorProps ?? {};
return (
<DocumentEditorWithRef
@@ -99,9 +104,9 @@ export const DocumentEditor = forwardRef<EditorRefApi, DocumentEditorWrapperProp
externalEmbedComponent: {
widgetCallback: EmbedHandler,
},
...extendedEditorProps?.embedHandler,
...embedHandler,
},
...extendedEditorProps,
...restExtendedEditorProps,
}}
{...rest}
containerClassName={cn("relative pl-3 pb-3", containerClassName)}