diff --git a/frontend/src/userPanel/profile/imageCropper.ts b/frontend/src/userPanel/profile/imageCropper.ts index a76e32a..e3f52a2 100644 --- a/frontend/src/userPanel/profile/imageCropper.ts +++ b/frontend/src/userPanel/profile/imageCropper.ts @@ -214,8 +214,6 @@ export class ImageCropper { * Destroys the cropper and removes the canvas from DOM */ destroy(): void { - if (this.canvas.parentNode) { - this.canvas.parentNode.removeChild(this.canvas); - } + this.canvas.remove(); } }