spicywebau / craft-embedded-assets

Manage YouTube videos, Instagram photos, Twitter posts and more as first class assets in Craft CMS
MIT License
171 stars 34 forks source link

Type Error #219

Closed tigerchick closed 1 year ago

tigerchick commented 1 year ago

Description

Using code that was previously working, I now get the following TypeError on the frontend:

TypeError spicyweb\embeddedassets\Variable::get(): Argument #1 ($asset) must be of type craft\elements\Asset, null given

Note that the embedded asset field is within a Neo block. Given that my code hasn't changed since it stopped working, my guess is that it's something to do with a new release of Neo or Craft (both of which are at latest versions). Unfortunately I'm not able to tell which new version broke it.

Other information

tigerchick commented 1 year ago

Well there's a funny thing. It's working again. Hmmm odd. Apologies for the hasty issue posting - please close again!