kongulov / nova-tab-translatable

This package contains a NovaTabTranslatable class you can use to make any Nova field type translatable with tabs.
MIT License
79 stars 17 forks source link

File destroy not working #45

Open fsavina-akqa opened 4 months ago

fsavina-akqa commented 4 months ago

Hello, when I try to delete a file attached to a resource that DOES NOT use translatable tabs nor has translatable attributes, I get the following error:

{
    "message": "in_array(): Argument #2 ($haystack) must be of type array, null given",
    "exception": "TypeError",
    "file": "/var/www/html/vendor/kongulov/nova-tab-translatable/src/Http/Controllers/FieldDestroyController.php",
    "line": 26
}

why is your FieldDestroyController overriding Nova's FieldDestroyController even on resources without translatable tabs/attributes?

Thanks, F.