Skip to content

Bug - Correct Syntax Throwing Error for non empty value in context #2034

Open
@satyajitnayk

Description

@satyajitnayk

Syntax

{{#if (name)}}{{/if}}

Throw Error When pass non empty string for name in context

Empty value for name in context Non Empty value for name in context
image image

Error String

   (lookupProperty(...) || (depth0 && lookupProperty(...)) || container.hooks.helperMissing).call is not a function
    

    Error: (lookupProperty(...) || (depth0 && lookupProperty(...)) || container.hooks.helperMissing).call is not a function
    at t._callbacks.<computed> (https://handlebarsjs.com/assets/js/8.214167ea.js:1:61688)
    at n (https://handlebarsjs.com/assets/js/8.214167ea.js:1:61432)
    at Worker.<anonymous> (https://handlebarsjs.com/assets/js/8.214167ea.js:1:61536)

Same Happening for unless helper too

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions