Skip to content

[BUG] The usage of Variables is not consistent #103

Open

Description

@bassamtantawi-botpress

If I want to deal with variables, sometimes it works by using "event.state.session.{variableName}" and sometimes it only works by using "session.{variableName}"

v12.26.1

image

Activity

  1. tomkcey commented on Sep 30, 2021

    @tomkcey

    @EFF Isn't this just the way it was designed or it's an actual bug?

    My understanding is the raw evaluation in the transition condition will straight up slide your javascript expression into the eval function, while the property access in the text component is merely the extension of the event.state object that has been exposed to that component? If this is correct it would mean it was designed this way intentionally; this shouldn't be flagged as a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions