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

*showToast* - _(FlowActionCall)_ - If message parameter is not supplied, flow crashes with [Cannot read properties of undefined (reading 'toLowerCase')] #1570

Open
cdevelin opened this issue Aug 1, 2024 · 1 comment

Comments

@cdevelin
Copy link

cdevelin commented Aug 1, 2024

Steps to reproduce the behavior:

  1. Install Show Toast package v2.0
  2. Add Show Toast action to a flow, set the input value parameters on the flow action: [Dismissal mode: pester], [Duration: 5], [Icon: do not activate], [Message: do not activate], [Title: 'Test]', [Type: info], [URL Label: do not activate], [URL Link: do not activate]
  3. Activate flow and add to a lightning page
  4. Run flow on lightning page
  5. See error

Expected behaviour

Flow should show a simple toast action with a title, but no detailed message. e.g. 'Test'

Actual behaviour

Flow crashes, with the log error:

Error element Info_Toast (FlowActionCall).
Action failed: c:showToast$controller$invoke [Cannot read properties of undefined (reading 'toLowerCase')]

@Garywoo
Copy link
Contributor

Garywoo commented Aug 28, 2024

While I agree with the logic that every toast should have a title, if you look at the documentation, it states that the message parameter is required, and the title parameter is optional. This is a little confusing, I know.

For a single line of text in the toast, the standard usage is to only supply a message value, and not include a title parameter. The message value is then displayed in the large text size inside the toast.

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

2 participants