Project

General

Profile

Actions

Bug #33514

closed

Toast type in errorToast is incorrect

Added by Jeremy Lenz almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
-
Difficulty:
trivial
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When using API middleware's errorToast option, the action dispatched has a type 'error' which is incorrect. This results in a console warning:

Toast notification type 'error' is invalid. Please use one of the following types: success,danger,warning,info,default

It transforms the error to the 'danger' type, but still displays the warning. It should be 'danger' from the beginning to avoid the console warning.

Actions

Also available in: Atom PDF