Skip to content

Commit

Permalink
Update return type.
Browse files Browse the repository at this point in the history
Co-authored-by: Arkadiusz Filipczak <ark.flp@gmail.com>
  • Loading branch information
mmotyczynska and arkflpc authored Jul 14, 2023
1 parent 6e5a1c6 commit a6a1c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ckeditor5-image/src/imageutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default class ImageUtils extends Plugin {
* Returns an image widget editing view based on the passed image view.
*/
public getImageWidgetFromImageView( imageView: ViewElement ): ViewContainerElement | null {
return imageView.findAncestor( { classes: IMAGE_WIDGETS_CLASSES_MATCH_REGEXP } ) as ViewContainerElement;
return imageView.findAncestor( { classes: IMAGE_WIDGETS_CLASSES_MATCH_REGEXP } ) as ( ViewContainerElement | null );
}

/**
Expand Down

0 comments on commit a6a1c34

Please sign in to comment.