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
Attempting to render a list that contains a reference to an item that has been [soft] deleted from the database will likely throw an Impossible to access an attribute ("something") on a null variable error.
After garbage collection it can be mitigated using something like...
{% for item in list.items.elementId(':notempty:').all() %}
...but maybe there is a better way and one that doesn't depend on garbage collection. 🤔
The text was updated successfully, but these errors were encountered:
Yep, I think we'll want to add a query param that looks up against the linked element's dateDeleted column, just to ensure we're checking against that correctly and not reliant on garbage collection.
Possibly also test against disabled element's, as they shouldn't be included either.
Attempting to render a list that contains a reference to an item that has been [soft] deleted from the database will likely throw an
Impossible to access an attribute ("something") on a null variable
error.After garbage collection it can be mitigated using something like...
{% for item in list.items.elementId(':notempty:').all() %}
...but maybe there is a better way and one that doesn't depend on garbage collection. 🤔
The text was updated successfully, but these errors were encountered: