aerni / statamic-livewire-forms

Supercharge your Statamic forms with Livewire
https://statamic.com/addons/aerni/livewire-forms
Other
28 stars 2 forks source link

UndefinedContainerException when using multiple containers #56

Closed j-jalving closed 5 months ago

j-jalving commented 5 months ago

When using an Asset field in a project with multiple local containers configured, after submitting the error UndefinedContainerException: An asset container has not been configured is thrown. This happens even though the container option has been set.

Statamic seems to be unable to retrieve the field options inside Statamic's AssetsUploader class. In projects with only one container, the error does not occur because it will automatically pick that container without looking at the field options.

aerni commented 5 months ago

Thanks! Just released a fix.