You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The form must inform the PhotoUploadComponent to not delete the photo after being destroyed (due to navigating away) by setting the deleteOnClose property to false right before triggering the navigation, but this change doesn't always get picked up by the upload component.
The solution is to force change detection after setting deleteOnClose to false in the parent component by calling ChangeDetectorRef.detectChanges().
This will let the PhotoUploadComponent pick up the changes before executing ngOnDestroy()
After uploading a photo through the form, it got deleted when submitting and navigating to the client profile.
The text was updated successfully, but these errors were encountered: