can't see avatar after update

Hello, I have a custom page for the profile. After save the form data the view throw an error filament php file upload foreach() argument must be of type array|object, string given this happens in avatar component
FileUpload::make('profile.avatar')
  ->label(
      __('Avatar'))
  ->maxSize(1024 * 1024 * 2)
  ->avatar()
  ->imageEditor()
  ->circleCropper()
  ->directory('avatars')
  ->columnSpan(1),


I have a relationship HasOne between the User model and the Profile model
Was this page helpful?