Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Didn't works with ??? operator #95

Open
davidhellmann opened this issue Jan 28, 2022 · 0 comments
Open

Didn't works with ??? operator #95

davidhellmann opened this issue Jan 28, 2022 · 0 comments

Comments

@davidhellmann
Copy link

Hey,

great plugin but it looks like it has problems with the ??? Operator.
It's an extension: https://plugins.craftcms.com/empty-coalesce but maybe you can add it.
If one of this Operators in the file there is no formatting at all. If I switch to ?? Operator it works fine again.

WORKS

{{ include('_builders/_builderContent.twig', {
        props: {
          blocks: entry.contentBuilder ?? null
        }
      }, withContext = false) }}

WORKS NOT

{{ include('_builders/_builderContent.twig', {
        props: {
          blocks: entry.contentBuilder ??? null
        }
      }, withContext = false) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant