Fix admin templates#18972
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
db49964 to
98ebb3f
Compare
| {% set resource = hookable_metadata.context.resource %} | ||
| {% set metadata = hookable_metadata.context.metadata %} | ||
| {% set configuration = hookable_metadata.context.configuration|default(null) %} | ||
| {% set resource = hookable_metadata.context.resource is defined ? hookable_metadata.context.resource : null %} |
There was a problem hiding this comment.
When we have this simpler code:
{% set resource = hookable_metadata.context.resource|default(null) %}
And when the resource is invalid (validation failed), the resource var is null...
That small change fixed the CI.
Apply the fixes we did on Sylius stack:
And this few improvement that is not merged yet: