Skip to content

[Bug]: toast.open fails without second argument. #1851

Open
@ScottKemp

Description

@ScottKemp

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The docs says this should work:
toast.open('Hello World!');

It does not. And it fails with a cryptic console log.

After you add the second parameter, it does.
toast.open('Hello World!', {duration: 10});

Either need fix the function, or update the docs

Expected Behavior

toast.open('Hello World!');

Should pop up Hello World!

Steps to reproduce

Create a JS query.

Put this as the contents:
toast.open('Hello World!');

Run the query. It will not popup

Environment

Self Hosted 2.7.2

Additional Information

No response

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