Skip to content
Snippets Groups Projects
Commit be103a9b authored by Anthony's avatar Anthony
Browse files

Fix error on annotation manipulation (opening manifest with annotation or saving annotation)

parent beb1d193
Branches
No related tags found
1 merge request!10Draft: MigratingAnnotationCreation to MUI5.
Pipeline #1668 failed
...@@ -33,10 +33,7 @@ class CanvasAnnotationsWrapper extends Component { ...@@ -33,10 +33,7 @@ class CanvasAnnotationsWrapper extends Component {
switchToSingleCanvasView, TargetComponent, targetProps, windowViewType, switchToSingleCanvasView, TargetComponent, targetProps, windowViewType,
} = this.props; } = this.props;
const { singleCanvasDialogOpen } = this.state; const { singleCanvasDialogOpen } = this.state;
const props = {
...targetProps,
listContainerComponent: CanvasListItem,
};
return ( return (
<AnnotationActionsContext.Provider <AnnotationActionsContext.Provider
value={{ value={{
...@@ -52,7 +49,7 @@ class CanvasAnnotationsWrapper extends Component { ...@@ -52,7 +49,7 @@ class CanvasAnnotationsWrapper extends Component {
}} }}
> >
<TargetComponent <TargetComponent
{...props} // eslint-disable-line react/jsx-props-no-spreading {...targetProps} // eslint-disable-line react/jsx-props-no-spreading
/> />
{windowViewType !== 'single' && ( {windowViewType !== 'single' && (
<SingleCanvasDialog <SingleCanvasDialog
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment